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

Why won't my intermission script work on countdown? It only shows for 3rd player too.

Asked by 9 years ago
if game.Players.NumPlayers >= 3 then
    script.Parent.Text = "Intitializing..."
wait(10)

script.Parent.Text = ("Choosing map...")
wait(9)

for i = 10 ,1, 0 do
    script.Parent.Text = ("Countdown:" ..i)
end

end

2 answers

Log in to vote
0
Answered by 9 years ago

Thanks guys!

Ad
Log in to vote
-1
Answered by 9 years ago

Well, it seems like it should work... No syntax problems. What do you mean it doesn't show 3rd player? Try removing the brackets around the pieces of text. That could be stuffing it up.

if game.Players.NumPlayers >= 3 then
script.Parent.Text = "Initializing..."
wait(10)
script.Parent.Text = "Choosing map..."
wait(9)
for i = 10, 1, 0 do
script.Parent.Text = "Countdown: " ..i
end
end

See if that works, or try making a function with the code in it then call it like this:

if game.Players.NumPlayers >= 3 then
RoundFunction()
end

Answer this question