im making a fnaf power system where there's a tick value that when goes over 100 it goes back to 0 and takes away a bit from the power (in another script), I want to make it that the more stuff you use, the tick goes down faster, I tried to make it but it stayed the same. can someone help me please
local hallwayLight = workspace.HallwayLight["IsHallwayLightUsed?"]
local leftDoor = workspace.LeftDoor["IsLeftDoorClosed?"]
local leftLight = workspace.LeftDoor["IsLeftDorrLightOn?"]
local rightDoor = workspace.RightDoor["IsRightDoorClosed?"]
local rightLight = workspace.RightDoor["IsRightDoorLightOn?"]
while hallwayLight == true do
wait(0.3)
script.Parent.Value += 1
end
end
while leftDoor == true do
wait(0.3)
script.Parent.Value += 1
end
end
while leftLight == true do
wait(0.3)
script.Parent.Value += 1
end
end
while rightDoor == true do
wait(0.3)
script.Parent.Value += 1
end
end
while rightLight == true do
wait(0.3)
end
end

1 comment
alright but i need an example