Skip to main content

Players

These APIs allow you to interface with Players in the game.

Global Methods

Players.GetJoined(): PlayerClient[]

Returns an array of all players that are currently connected to the server.

Players.GetRandom(): PlayerClient

Returns a random player that is currently connected to the server.

Players.GetCount(): number

Returns the number of players that are currently connected to the server.