Players

extends Instance

Class fields

FieldXML typeValue
NamestringPlayers
ExplorerOrderstring2
ExplorerImageIndexstring21

Properties

11
BubbleChat
bool
FieldXML typeValue
NamestringBubbleChat
CharacterAutoLoads
bool
FieldXML typeValue
NamestringCharacterAutoLoads
Browsablebooltrue
summarystringSet to true, when a player joins a game, they get a character automatically, as well as when they die. When set to false, characters do not auto load and will only load in using Player:LoadCharacter().
ClassicChat
bool
FieldXML typeValue
NamestringClassicChat
LocalPlayer
Object
FieldXML typeValue
NamestringLocalPlayer
MaxPlayers
int
FieldXML typeValue
NamestringMaxPlayers
MaxPlayersInternal
int
FieldXML typeValue
NamestringMaxPlayersInternal
NumPlayers
int
FieldXML typeValue
NamestringNumPlayers
PreferredPlayers
int
FieldXML typeValue
NamestringPreferredPlayers
PreferredPlayersInternal
int
FieldXML typeValue
NamestringPreferredPlayersInternal
localPlayer
Object
FieldXML typeValue
NamestringlocalPlayer
numPlayers
int
FieldXML typeValue
NamestringnumPlayers

Functions

23
AddLeaderboardKey
(key: string) → void
FieldXML typeValue
NamestringAddLeaderboardKey
Chat
(message: string) → void
FieldXML typeValue
NamestringChat
CreateLocalPlayer
(userId: int, isTeleport: bool = …) → Instance
FieldXML typeValue
NamestringCreateLocalPlayer
GetPlayerByID
(userID: int) → Instance
FieldXML typeValue
NamestringGetPlayerByID
GetPlayerById
(userId: int) → Instance
FieldXML typeValue
NamestringGetPlayerById
GetPlayerByUserId
(userId: int) → Instance
FieldXML typeValue
NamestringGetPlayerByUserId
GetPlayerFromCharacter
(character: Instance) → Instance
FieldXML typeValue
NamestringGetPlayerFromCharacter
GetPlayers
() → Objects
FieldXML typeValue
NamestringGetPlayers
GetUseCoreScriptHealthBar
() → bool
FieldXML typeValue
NamestringGetUseCoreScriptHealthBar
ReportAbuse
(player: Instance, reason: string, optionalMessage: string) → void
FieldXML typeValue
NamestringReportAbuse
SetAbuseReportUrl
(url: string) → void
FieldXML typeValue
NamestringSetAbuseReportUrl
SetBuildUserPermissionsUrl
(url: string) → void
FieldXML typeValue
NamestringSetBuildUserPermissionsUrl
SetChatFilterUrl
(url: string) → void
FieldXML typeValue
NamestringSetChatFilterUrl
SetChatStyle
(style: ChatStyle = …) → void
FieldXML typeValue
NamestringSetChatStyle
SetLoadDataUrl
(url: string) → void
FieldXML typeValue
NamestringSetLoadDataUrl
SetSaveDataUrl
(url: string) → void
FieldXML typeValue
NamestringSetSaveDataUrl
SetSaveLeaderboardDataUrl
(url: string) → void
FieldXML typeValue
NamestringSetSaveLeaderboardDataUrl
TeamChat
(message: string) → void
FieldXML typeValue
NamestringTeamChat
WhisperChat
(message: string, player: Instance) → void
FieldXML typeValue
NamestringWhisperChat
getPlayerFromCharacter
(character: Instance) → Instance
FieldXML typeValue
NamestringgetPlayerFromCharacter
getPlayers
() → Objects
FieldXML typeValue
NamestringgetPlayers
playerFromCharacter
(character: Instance) → Instance
FieldXML typeValue
NamestringplayerFromCharacter
players
() → Objects
FieldXML typeValue
Namestringplayers
Deprecatedbooltrue
summarystringUse GetPlayers() instead

Yield functions

6
BlockUser
(blockerUserId: int, blockeeUserId: int) → string
FieldXML typeValue
NamestringBlockUser
GetCharacterAppearanceAsync
(userId: int) → Instance
FieldXML typeValue
NamestringGetCharacterAppearanceAsync
GetFriendsAsync
(userId: int) → Instance
FieldXML typeValue
NamestringGetFriendsAsync
GetNameFromUserIdAsync
(userId: int) → string
FieldXML typeValue
NamestringGetNameFromUserIdAsync
GetUserIdFromNameAsync
(userName: string) → int
FieldXML typeValue
NamestringGetUserIdFromNameAsync
UnblockUser
(exblockerUserId: int, exblockeeUserId: int) → string
FieldXML typeValue
NamestringUnblockUser

Events

11
BlockUserSignal
(blockerUserId: int, blockeeUserId: int, blocking: bool) → void
FieldXML typeValue
NamestringBlockUserSignal
BlockedRequestFinishedSignal
(blockerUserId: int, blockeeUserId: int, didDoRequest: string) → void
FieldXML typeValue
NamestringBlockedRequestFinishedSignal
FriendRequestEvent
(player: Instance, player: Instance, friendRequestEvent: FriendRequestEvent) → void
FieldXML typeValue
NamestringFriendRequestEvent
GameAnnounce
(message: string) → void
FieldXML typeValue
NamestringGameAnnounce
PlayerAdded
(player: Instance) → void
FieldXML typeValue
NamestringPlayerAdded
PlayerAddedEarly
(player: Instance) → void
FieldXML typeValue
NamestringPlayerAddedEarly
PlayerChatted
(chatType: PlayerChatType, player: Instance, message: string, targetPlayer: Instance) → void
FieldXML typeValue
NamestringPlayerChatted
PlayerRemoving
(player: Instance) → void
FieldXML typeValue
NamestringPlayerRemoving
PlayerRemovingLate
(player: Instance) → void
FieldXML typeValue
NamestringPlayerRemovingLate
RequestCloudEditKick
(playerId: int) → void
FieldXML typeValue
NamestringRequestCloudEditKick
RequestCloudEditShutdown
() → void
FieldXML typeValue
NamestringRequestCloudEditShutdown