Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why isnt my script constantly checking a value?

Asked by 3 years ago

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
0
bescUSE THE VALUe is not 790 WideSteal321 773 — 3y

1 answer

Log in to vote
0
Answered by
I_Nev 200 Moderation Voter
3 years ago

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
0
my brain is at an all time low now mynam3with123 65 — 3y
Ad

Answer this question