# PlayerService

### Functions

#### getPlayers(): [Player](https://docs.easy.gg/scripting/bedwars-scripting/objects/player)\[]

Returns all players in the server

#### getNearbyPlayers(center: [**Vector3**](https://create.roblox.com/docs/reference/engine/datatypes/Vector3), radius: number): [Player](https://docs.easy.gg/scripting/bedwars-scripting/objects/player)\[] | nil

Returns players contained in the radius around the center position.

#### getPlayerByUserName(name: string): [Player](https://docs.easy.gg/scripting/bedwars-scripting/objects/player) | nil

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

#### getPlayerByDisplayName(name: string): [Player](https://docs.easy.gg/scripting/bedwars-scripting/objects/player) | nil

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