while true do wait (1) if script.Parent.Text == "0" then return end script.Parent.Text = script.Parent.Text -1 end
I need the timer to reset at zero but I don't know how to do this there's no tutorials about this or anything, please help.
It is better to use a for loop instead as it is more efficient. Also, return is for functions. To end a loop, you would use break
Here is what you do:
local seconds = 60 -- change this to how long you want your timer to run for while true do -- to loop the timer. for i = seconds,0,-1 do script.Parent.Text = tostring(i) wait(1) end script.Parent.Text = seconds end