Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Whats wrong with my countdown script?

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

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.

2 comments

0

Well, there is one problem.

0

It does 3:180 and stuff XD

This discussion is preserved as it was. New answers, comments, and votes are closed.