I have a script that is supposed to increase a numbervalue based on a boolvalue. However, it doesn't work, nor display any errors. I can't find out what's wrong.
while true do
wait(0.3)
if game.Workspace.Gasflow == true then
script.Parent.Value = script.Parent.Value + 5
end
if game.Workspace.Gasflow == false then
script.Parent.Value = script.Parent.Value - 5
end
end
