Players
Useful for managing players in the game
Properties
Name | Type | Description |
---|---|---|
LocalPlayer | Player | When called from a local script, returns the local player |
Inherited from Dynamic | Name Enabled Root Tag Position Rotation LocalRotation Size Parent TextureID TextureTiling TextureTilingY |
Functions
Name | Returns | Description |
---|---|---|
GetPlayerByUsername | Player | Returns the connected player whose username corresponds to the value, provided one exists |
GetPlayerByUserId | Player | Returns the connected player whose user ID corresponds to the value, provided one exists |
GetPlayers | Table | Gets an array of all connected players in the game |
Inherited from | Clone Destroy |
Inherited from Dynamic | SetParent Log IsA FindFirstChild FindFirstChildOfClass FindFirstParentOfClass MoveTo NetworkSync LookAt LocalToWorldPoint GetChildren ClearChildren |
Events
Name | Description |
---|---|
PlayerJoined | Invoked when a player loads into the game |
PlayerLeft | Invoked when a player has left the game |
PlayerSpawned | Invoked when a player spawns |
PlayerDied | Invoked when a player dies |