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

What is wrong with my intermission script for attempting to do a countdown?

Asked by 9 years ago
if game.Players.NumPlayers >= 3 then
    for i = 30,0,1 do
    script.Parent.Text = "Intermission"..i
    wait(1)
    end
end

1 answer

Log in to vote
0
Answered by
2eggnog 981 Moderation Voter
9 years ago

You're attempting to count up from 30 to 0 by increments of 1, which makes absolutely no sense. Change the 1 to -1 to make it count down instead.

if game.Players.NumPlayers >= 3 then
    for i = 30,0,-1 do
    script.Parent.Text = "Intermission"..i
    wait(1)
    end
end
Ad

Answer this question