Skip to content

Player:GetAttribute

Read attribute for this player.

player:GetAttribute(attribute)

Inputs: attribute is an integer attribute ID.

Output: Number or nil. Native player attribute; nil when unavailable, including the ambiguous native -1 error sentinel.

Errors and unavailable states: A wrong receiver or argument type 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.