Skip to Content

Player

Read-only view of a Player as exposed to client scripts.

Every property is read only on the client. Changes must be requested from the server through Remote.

Properties

Name

player.Name: string

Account username.

UserId

player.UserId: number

Numeric account id.

State

player.State: string

Movement state: Standing, Walking, Falling or Sitting.

Team

player.Team: Team?

Current team, or nil.

for _, player in ipairs(Players:GetPlayers()) do
	print(player.Name, player.Team and player.Team.Name or "no team")
end

On this page