How can you keep track of the number of players in a game?
COMMUNITY QUESTION
How can you keep track of the number of players in a game?
2 answers
game.Players.NumPlayers -- Legitly all it is. :D
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.

1 comment
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