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 10 years ago
1for i = 60,0,-1 do
2script.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
10 years ago

Hey, dude!

01for i = 60,0,-1 do
02    script.Parent.Text = "Time remaining: 2:" ..i
03    wait(1)
04end
05for i = 60,0,-1 do
06    script.Parent.Text = "Time remaining: 1:" ..i
07    wait(1)
08end
09for i = 60,0,-1 do
10    script.Parent.Text = "Time remaining: :" ..i
11    wait(1)
12end

There, edited.

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

Answer this question