Skip to content

Players

Service for handling player connections.

Description

Obtain this service using game:GetService("Players").


Events

PlayerConnected(player: Player)

Fired when a player establishes a connection to the server, before they authenticate or join the game.


PlayerAuthenticated(player: Player)

Fired when a player has been successfully authenticated.


PlayerAuthenticationFailed(player: Player)

Fired when a player's authentication attempt fails.


PlayerReadyToJoin(player: Player)

Fired when a player has loaded necessary assets and is ready to join the game.


PlayerJoined(player: Player)

Fired when a player has fully joined the game.


PlayerDisconnected(player: Player)

Fired when a player disconnects from the server.



Enumerations

enum CameraMode:

CameraMode Static

The camera is fixed in place.

CameraMode Following

The camera follows a target set via SetCameraTarget.

CameraMode FreeFlight

The camera can be freely moved around by the client.