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

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

Asked by 10 years ago

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

2 answers

Log in to vote
2
Answered by
lomo0987 250 Moderation Voter
10 years ago
game.Players.NumPlayers -- Legitly all it is. :D
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 chill22518 145 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

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.

Answer this question