I have a script for a timer that counts it down but when it ends I want it to change the values? How would I do that?
while true do wait() script.Parent.Text = script.Parent.Time.Value end
The two values are StartTime and EndTime.
if script.Parent.Time.Value==0 then --Do stuff when the timer ends end
This would detect when the "Time" Value becomes 0 and executes whatever code you need.
Full Code:
while true do wait() script.Parent.Text = script.Parent.Time.Value if script.Parent.Time.Value==0 then --Do stuff when the timer ends end end