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

How can I figure out the number of players in a game?

Any ideas? I'm not sure how to do it.

1 answer

✓ Accepted answer

You can either use the NumPlayers property of Players, or you can get the length of the table holding all of the players.

local amountOfPlayers = Game.Players.NumPlayers
--Alternatively;
local amountOfPlayers = #Game.Players:GetPlayers()

1 comment

0

Ok thx!

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