Skip to content

How to get Players in an Instance

-- Pull get the number of users in an instance
... = PlayerAPI.PlayerCount
-- You can also use:
... = #PlayerAPI.AllPlayers
-- Pull in all the users in an instance, including you.
... = PlayerAPI.AllPlayers
-- Pull in all the users in an instance, excluding you.
... = PlayerAPI.RemotePlayers
-- Get just you.
... = PlayerAPI.LocalPlayer