Skip to content

Players ​

Inherits Instance.

A service: the global Players is the game's one Players.

Properties ​

NameTypeNotes
LocalPlayerPlayer?Read-only. Not saved in places.

Methods ​

  • GetPlayerByUserId(userId: number): Player?
  • GetPlayers(): {Player}

Events ​

  • PlayerAdded, whose handlers get (Player).
  • PlayerRemoving, whose handlers get (Player).

Inherited ​

From Instance: AddTag, AncestryChanged, Archivable, AttributeChanged, Changed, ChildAdded, ChildRemoved, ClassName, ClearAllChildren, Clone, DescendantAdded, DescendantRemoving, Destroy, Destroying, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, GetDescendants, GetFullName, GetPropertyChangedSignal, GetTags, HasTag, IsA, IsAncestorOf, IsDescendantOf, IsPropertyModified, Name, Parent, QueryDescendants, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild.

Apache License 2.0