Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

[FIXED] Why does my NumberValue keep going down even tho a value is false?

I have been stuck on this problem for a couple of hours now, and I don't know how to fix it. My NumberValue is supposed to stop going down but it just continues to go down even tho a BoolValue is set to false.

while wait() do
if game.ReplicatedStorage.ClickedPlay.Value == true then
	script.Parent.Visible = true
	break
end
end

while wait(1.5) do
	if game.ReplicatedStorage.IsOn2.Value == true then
	game.ReplicatedStorage.Battery.Value = game.ReplicatedStorage.Battery.Value - 1
	end
	end

Please help.

1 answer

Oh, I fixed it myself... I used localscripts instead of scripts...

This discussion is preserved as it was. New answers, comments, and votes are closed.