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: stringAccount username.
UserId
player.UserId: numberNumeric account id.
State
player.State: stringMovement 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