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

why isnt my script constantly checking a value?

so rn i have a script but i want it to do something when the value reaches a certain number, so i wrote the script so its constantly checking the value but its not working for some reason

Timer = game.ReplicatedStorage.Timer

while wait() do
	if Timer.Value == 790 then
		print("Probably working")
	end
end

1 comment

0

bescUSE THE VALUe is not 790

1 answer

✓ Accepted answer

because the value isn't 790 lol

try this

Timer = game.ReplicatedStorage.Timer

while wait() do
    if Timer.Value < 790 then
        print("Value isn't 790 it is: "..Timer.Value)
else
	print("Omg it is 790 yes mommy loves me")
    end
end

1 comment

0

my brain is at an all time low now

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