Player:GetPlayerName¶
Read player name for this player.
player:GetPlayerName()
Inputs: None beyond the Player receiver.
Output: String or nil. Copied player name; nil when discovery or reading is unavailable. An empty string is a known empty name.
Errors and unavailable states: A wrong receiver can raise a Lua argument error. An unavailable live read returns nil as described in Output.
See Lua values and game objects for lifetime and enum guidance.