🏄‍♂ïļPlayerService

Service with utilities for Player objects

Functions

getPlayers(): Player[]

Returns all players in the server

getNearbyPlayers(center: Vector3, radius: number): Player[] | nil

Returns players contained in the radius around the center position.

getPlayerByUserName(name: string): Player | nil

Returns the player in the game server whose username matches the provided string.

getPlayerByDisplayName(name: string): Player | nil

Returns the player in the game server whose display name matches the provided string.

Last updated