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

Counting players in characters?

If I wanted to wait until I had 2 players in the game how should I do that?

-GianniFlash

2 answers

if game.Players.NumPlayers > 2 then
	--do stuff
end

2 comments

0

Do I need a connect line or a while wait?

0

It's >= not >

repeat wait(1/30) until game:GetService("Players").NumPlayers >= 2

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