Player:GetSelectedObjectCount¶
Read selected object count for this player.
player:GetSelectedObjectCount()
Inputs: None beyond the Player receiver.
Output: Integer or nil. Current selection count for the local player; nil when the player or selection query is unavailable.
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.