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

How can you keep track of the number of players in a game?

How can you keep track of the number of players in a game?

2 answers

game.Players.NumPlayers -- Legitly all it is. :D

1 comment

0

Yeah I know that but if you make a script based on a certain number of players then the number is changed then nothing changes

If you want a example. Do this!

function detectPlayers()
if game.Players.NumPlayers >= 4 then
print 'okay'
end

This script will detect if 4 or more players are on the server. If so it will print okay.

Regards, Nathan.

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