I want to make a script that changes a numbervalue by negative one when a boolvalue is true
this is my script its a server script and its in serverscriptservice
local rp = game.ReplicatedStorage
local power = rp.System.Power
local close = rp.System.Closed
while close.Value == true do
wait(2)
power.Value -= 1
end