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

Which loop/function should I use to make this soccer game timer work a certain way?

Asked by 7 years ago
Edited 7 years ago
for i = 0,60,1 do
    wait(.25)
    script.Parent.Text = tostring(i)
end

I'm trying to make this move as the seconds in a soccer timer. Every 15 seconds another script will go up by 1 (minutes)

I want this to be the seconds, but I want it to also restart after reaching 60.

1 answer

Log in to vote
0
Answered by
wookey12 174
7 years ago
while true do
for i = 0,60,1 do
    wait(1)
    script.Parent.Text = tostring(i)
end
end
0
click accept if it helped wookey12 174 — 7y
0
You don't need to use tostring() Azarth 3141 — 7y
0
dont put that on my answer, put it on his question /: wookey12 174 — 7y
Ad

Answer this question