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

Whats wrong with my countdown script?

Asked by 9 years ago
for i = 60,0,-1 do
script.Parent.Text = "Time remaining: 3:"..i

I'm trying to make it a countdown of 3 minutes, but how do I change the minutes too when the seconds hit 0 and the seconds keep going? For example; 3:00 minutes, 2:59, 2:58, etc. When it hits 2:00, how will I change that? Please help!

1 answer

Log in to vote
3
Answered by
Relatch 550 Moderation Voter
9 years ago

Hey, dude!

for i = 60,0,-1 do
    script.Parent.Text = "Time remaining: 2:" ..i
    wait(1)
end
for i = 60,0,-1 do
    script.Parent.Text = "Time remaining: 1:" ..i
    wait(1)
end
for i = 60,0,-1 do
    script.Parent.Text = "Time remaining: :" ..i
    wait(1)
end

There, edited.

0
Well, there is one problem. Relatch 550 — 9y
0
It does 3:180 and stuff XD Relatch 550 — 9y
Ad

Answer this question