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

Why is my intermission GUI not functioning properly?

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

elseif game.Players.NumPlayers < 3 then
	script.Parent.Text = ("Waiting for more players")
end
end

For some players, it does not update the text of the intermission. But if I add a While True Do, it messes up the countdown. Help please.

2 answers

✓ Accepted answer
if game.Players.NumPlayers > 3 then
	for i = 30,0,-1 do  
		script.Parent.Text = "Countdown " ..i
	    wait(1)
	 end
else --This just needs to be "else" since it explains there needs to be more than 3 on line 1.
	script.Parent.Text = "Waiting for more players"
end

I didn't test it, but this should work

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

else
    script.Parent.Text = ("Waiting for more players")
end
end

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