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

How do I check how many players there are in a server?

Asked by 10 years ago

I have a game, and I want it to start when there is at least 3 players online. How would I go about doing this?

2 answers

Log in to vote
2
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

The easiest method is by using the NumPlayers property of Players.

0
Why thank you. jBuildz17 20 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

That, or you could use #game.Players:GetPlayers(), but your method is better.

Answer this question