I'm having trouble making a 5 min, resetting timer. Can you help?
I'm trying to edit a script that creates a 5 minute timer on TextLabel on a SurfaceGui on a part. The edit I'm making to the script is to make the timer reset.
Here is the original script-
20 | if min < = 9 and sec < = 9 and mic < = 9 then |
21 | script.Parent.Text = "0" ..min.. ":0" ..sec.. ":0" ..mic |
22 | elseif min < = 9 and sec < = 9 and mic > = 10 then |
23 | script.Parent.Text = "0" ..min.. ":0" ..sec.. ":" ..mic |
24 | elseif min < = 9 and sec > = 10 and mic < = 9 then |
25 | script.Parent.Text = "0" ..min.. ":" ..sec.. ":0" ..mic |
26 | elseif min < = 9 and sec > = 10 and mic > = 10 then |
27 | script.Parent.Text = "0" ..min.. ":" ..sec.. ":" ..mic |
28 | elseif min > = 10 and sec < = 9 and mic < = 9 then |
29 | script.Parent.Text = min.. ":0" ..sec.. ":0" ..mic |
30 | elseif min > = 10 and sec < = 9 and mic > = 10 then |
31 | script.Parent.Text = min.. ":0" ..sec.. ":" ..mic |
32 | elseif min > = 10 and sec > = 10 and mic < = 9 then |
33 | script.Parent.Text = min.. ":" ..sec.. ":0" ..mic |
34 | elseif min > = 10 and sec > = 10 and mic > = 10 then |
35 | script.Parent.Text = min.. ":" ..sec.. ":" ..mic |
Here Is the edited script-
21 | if min < = 9 and sec < = 9 and mic < = 9 then |
22 | script.Parent.Text = "0" ..min.. ":0" ..sec.. ":0" ..mic |
23 | elseif min < = 9 and sec < = 9 and mic > = 10 then |
24 | script.Parent.Text = "0" ..min.. ":0" ..sec.. ":" ..mic |
25 | elseif min < = 9 and sec > = 10 and mic < = 9 then |
26 | script.Parent.Text = "0" ..min.. ":" ..sec.. ":0" ..mic |
27 | elseif min < = 9 and sec > = 10 and mic > = 10 then |
28 | script.Parent.Text = "0" ..min.. ":" ..sec.. ":" ..mic |
29 | elseif min > = 10 and sec < = 9 and mic < = 9 then |
30 | script.Parent.Text = min.. ":0" ..sec.. ":0" ..mic |
31 | elseif min > = 10 and sec < = 9 and mic > = 10 then |
32 | script.Parent.Text = min.. ":0" ..sec.. ":" ..mic |
33 | elseif min > = 10 and sec > = 10 and mic < = 9 then |
34 | script.Parent.Text = min.. ":" ..sec.. ":0" ..mic |
35 | elseif min > = 10 and sec > = 10 and mic > = 10 then |
36 | script.Parent.Text = min.. ":" ..sec.. ":" ..mic |
I assumed that adding an extra-
2 | jsdnjdnajbfhbhjfbahbfhbf |
I could make the timer repeat but it's not working, can you please help me