Player

extends Instance

Class fields

FieldXML typeValue
NamestringPlayer
ExplorerOrderstring1
ExplorerImageIndexstring12

Properties

43
AccountAge
int
FieldXML typeValue
NamestringAccountAge
AccountAgeReplicate
int
FieldXML typeValue
NamestringAccountAgeReplicate
AppearanceDidLoad
bool
FieldXML typeValue
NamestringAppearanceDidLoad
AutoJumpEnabled
bool
FieldXML typeValue
NamestringAutoJumpEnabled
CameraMaxZoomDistance
float
FieldXML typeValue
NamestringCameraMaxZoomDistance
CameraMinZoomDistance
float
FieldXML typeValue
NamestringCameraMinZoomDistance
CameraMode
CameraMode
FieldXML typeValue
NamestringCameraMode
summarystringAn enum that describes how a Player's camera is allowed to behave. <a href="http://wiki.roblox.com/index.php/CameraMode" target="_blank">More info</a>.
CanLoadCharacterAppearance
bool
FieldXML typeValue
NamestringCanLoadCharacterAppearance
Character
Object
FieldXML typeValue
NamestringCharacter
CharacterAppearance
string
FieldXML typeValue
NamestringCharacterAppearance
Browsableboolfalse
ChatMode
ChatMode
FieldXML typeValue
NamestringChatMode
CloudEditCameraCoordinateFrame
CoordinateFrame
FieldXML typeValue
NamestringCloudEditCameraCoordinateFrame
DataComplexity
int
FieldXML typeValue
NamestringDataComplexity
DataComplexityLimit
int
FieldXML typeValue
NamestringDataComplexityLimit
DataReady
bool
FieldXML typeValue
NamestringDataReady
summarystringRead-only. If true, this Player's persistent data can be loaded, false otherwise. <a href="http://wiki.roblox.com/index.php/ROBLOX_Scripting_How_To:_Data_Persistence" target="_blank">Info on Data Persistence</a>.
DevCameraOcclusionMode
DevCameraOcclusionMode
FieldXML typeValue
NamestringDevCameraOcclusionMode
DevComputerCameraMode
DevComputerCameraMovementMode
FieldXML typeValue
NamestringDevComputerCameraMode
DevComputerMovementMode
DevComputerMovementMode
FieldXML typeValue
NamestringDevComputerMovementMode
DevEnableMouseLock
bool
FieldXML typeValue
NamestringDevEnableMouseLock
DevTouchCameraMode
DevTouchCameraMovementMode
FieldXML typeValue
NamestringDevTouchCameraMode
DevTouchMovementMode
DevTouchMovementMode
FieldXML typeValue
NamestringDevTouchMovementMode
DisplayName
string
FieldXML typeValue
NamestringDisplayName
summarystringThe non-unique display name of the authenticated user associated with this Player.
FollowUserId
int64
FieldXML typeValue
NamestringFollowUserId
FollowUserIdReplicated
int64
FieldXML typeValue
NamestringFollowUserIdReplicated
Guest
bool
FieldXML typeValue
NamestringGuest
HasBuildTools
bool
FieldXML typeValue
NamestringHasBuildTools
HealthDisplayDistance
float
FieldXML typeValue
NamestringHealthDisplayDistance
MaxSimulationRadius
float
FieldXML typeValue
NamestringMaxSimulationRadius
MaximumSimulationRadius
float
FieldXML typeValue
NamestringMaximumSimulationRadius
MembershipType
MembershipType
FieldXML typeValue
NamestringMembershipType
MembershipTypeReplicate
MembershipType
FieldXML typeValue
NamestringMembershipTypeReplicate
NameDisplayDistance
float
FieldXML typeValue
NamestringNameDisplayDistance
Neutral
bool
FieldXML typeValue
NamestringNeutral
OsPlatform
string
FieldXML typeValue
NamestringOsPlatform
PersonalServerRank
int
FieldXML typeValue
NamestringPersonalServerRank
RespawnLocation
Object
FieldXML typeValue
NamestringRespawnLocation
SimulationRadius
float
FieldXML typeValue
NamestringSimulationRadius
TeamColor
BrickColor
FieldXML typeValue
NamestringTeamColor
Teleported
bool
FieldXML typeValue
NamestringTeleported
TeleportedIn
bool
FieldXML typeValue
NamestringTeleportedIn
UserId
int64
FieldXML typeValue
NamestringUserId
VRDevice
string
FieldXML typeValue
NamestringVRDevice
userId
int64
FieldXML typeValue
NamestringuserId

Functions

38
ClearCharacterAppearance
() → void
FieldXML typeValue
NamestringClearCharacterAppearance
DistanceFromCharacter
(point: Vector3) → float
FieldXML typeValue
NamestringDistanceFromCharacter
GetFriendStatus
(player: Instance) → FriendStatus
FieldXML typeValue
NamestringGetFriendStatus
GetGameSessionID
() → string
FieldXML typeValue
NamestringGetGameSessionID
GetMouse
() → Instance
FieldXML typeValue
NamestringGetMouse
GetUnder13
() → bool
FieldXML typeValue
NamestringGetUnder13
HasAppearanceLoaded
() → bool
FieldXML typeValue
NamestringHasAppearanceLoaded
JumpCharacter
() → void
FieldXML typeValue
NamestringJumpCharacter
Kick
(message: string = …) → void
FieldXML typeValue
NamestringKick
LoadBoolean
(key: string) → bool
FieldXML typeValue
NamestringLoadBoolean
LoadCharacter
(inGame: bool = …) → void
FieldXML typeValue
NamestringLoadCharacter
Browsablebooltrue
Deprecatedbooltrue
summarystringLoads in a new character for this player. This will replace the player's current character, if they have one. This should be used in conjunction with Players.CharacterAutoLoads to control spawning of characters. This function only works from a server-side script (NOT a LocalScript).
LoadCharacterAppearance
(assetInstance: Instance) → void
FieldXML typeValue
NamestringLoadCharacterAppearance
LoadCharacterBlocking
() → void
FieldXML typeValue
NamestringLoadCharacterBlocking
Browsablebooltrue
summarystringLoads this player's character and blocks until loading finishes.
LoadData
() → void
FieldXML typeValue
NamestringLoadData
LoadInstance
(key: string) → Instance
FieldXML typeValue
NamestringLoadInstance
LoadNumber
(key: string) → double
FieldXML typeValue
NamestringLoadNumber
LoadString
(key: string) → string
FieldXML typeValue
NamestringLoadString
Move
(walkDirection: Vector3, relativeToCamera: bool = …) → void
FieldXML typeValue
NamestringMove
MoveCharacter
(walkDirection: Vector2, maxWalkDelta: float) → void
FieldXML typeValue
NamestringMoveCharacter
RemoveCharacter
() → void
FieldXML typeValue
NamestringRemoveCharacter
RequestFriendship
(player: Instance) → void
FieldXML typeValue
NamestringRequestFriendship
RevokeFriendship
(player: Instance) → void
FieldXML typeValue
NamestringRevokeFriendship
SaveBoolean
(key: string, value: bool) → void
FieldXML typeValue
NamestringSaveBoolean
SaveData
() → void
FieldXML typeValue
NamestringSaveData
SaveInstance
(key: string, value: Instance) → void
FieldXML typeValue
NamestringSaveInstance
SaveLeaderboardData
() → void
FieldXML typeValue
NamestringSaveLeaderboardData
SaveNumber
(key: string, value: double) → void
FieldXML typeValue
NamestringSaveNumber
SaveString
(key: string, value: string) → void
FieldXML typeValue
NamestringSaveString
SetAccountAge
(accountAge: int) → void
FieldXML typeValue
NamestringSetAccountAge
SetMembershipType
(membershipType: MembershipType) → void
FieldXML typeValue
NamestringSetMembershipType
loadBoolean
(key: string) → bool
FieldXML typeValue
NamestringloadBoolean
loadInstance
(key: string) → Instance
FieldXML typeValue
NamestringloadInstance
loadNumber
(key: string) → double
FieldXML typeValue
NamestringloadNumber
loadString
(key: string) → string
FieldXML typeValue
NamestringloadString
saveBoolean
(key: string, value: bool) → void
FieldXML typeValue
NamestringsaveBoolean
saveInstance
(key: string, value: Instance) → void
FieldXML typeValue
NamestringsaveInstance
saveNumber
(key: string, value: double) → void
FieldXML typeValue
NamestringsaveNumber
saveString
(key: string, value: string) → void
FieldXML typeValue
NamestringsaveString

Yield functions

12
GetFriendsOnline
(maxFriends: int = …) → Array
FieldXML typeValue
NamestringGetFriendsOnline
GetRankInGroup
(groupId: int) → int
FieldXML typeValue
NamestringGetRankInGroup
GetRoleInGroup
(groupId: int) → string
FieldXML typeValue
NamestringGetRoleInGroup
GetWebPersonalServerRank
() → string
FieldXML typeValue
NamestringGetWebPersonalServerRank
IsBackendbooltrue
IsBestFriendsWith
(userId: int) → bool
FieldXML typeValue
NamestringIsBestFriendsWith
IsFriendsWith
(userId: int) → bool
FieldXML typeValue
NamestringIsFriendsWith
IsInGroup
(groupId: int) → bool
FieldXML typeValue
NamestringIsInGroup
LoadCharacterAsync
() → void
FieldXML typeValue
NamestringLoadCharacterAsync
Browsablebooltrue
summarystringYields while asynchronously loading this player's character.
SetWebPersonalServerRank
(rank: int) → bool
FieldXML typeValue
NamestringSetWebPersonalServerRank
WaitForDataReady
() → bool
FieldXML typeValue
NamestringWaitForDataReady
Browsablebooltrue
summarystringYields until the persistent data for this Player is ready to be loaded. <a href="http://wiki.roblox.com/index.php/ROBLOX_Scripting_How_To:_Data_Persistence" target="_blank">Info on Data Persistence</a>.
isFriendsWith
(userId: int) → bool
FieldXML typeValue
NamestringisFriendsWith
waitForDataReady
() → bool
FieldXML typeValue
NamestringwaitForDataReady

Events

17
CharacterAdded
(character: Instance) → void
FieldXML typeValue
NamestringCharacterAdded
CharacterAppearanceLoaded
(character: Instance) → void
FieldXML typeValue
NamestringCharacterAppearanceLoaded
CharacterRemoving
(character: Instance) → void
FieldXML typeValue
NamestringCharacterRemoving
Chatted
(message: string, recipient: Instance) → void
FieldXML typeValue
NamestringChatted
CloudEditSelectionChanged
(newSelection: Array) → void
FieldXML typeValue
NamestringCloudEditSelectionChanged
ConnectDiedSignalBackend
() → void
FieldXML typeValue
NamestringConnectDiedSignalBackend
FriendStatusChanged
(player: Instance, friendStatus: FriendStatus) → void
FieldXML typeValue
NamestringFriendStatusChanged
Idled
(time: double) → void
FieldXML typeValue
NamestringIdled
summarystringFired periodically after the user has been AFK for a while. Currently this event is only fired for the *local* Player. "time" is the time in seconds that the user has been idle.
Kill
() → void
FieldXML typeValue
NamestringKill
OnTeleport
(teleportState: TeleportState, placeId: int, spawnName: string) → void
FieldXML typeValue
NamestringOnTeleport
OnTeleportInternal
(teleportState: TeleportState, teleportInfo: Dictionary, customLoadingScreen: Instance) → void
FieldXML typeValue
NamestringOnTeleportInternal
RemoteFriendServiceSignal
(makeFriends: bool, userId: int) → void
FieldXML typeValue
NamestringRemoteFriendServiceSignal
RemoteInsert
(url: string, position: Vector3) → void
FieldXML typeValue
NamestringRemoteInsert
ScriptSecurityError
(hash: string, error: string, stack: string) → void
FieldXML typeValue
NamestringScriptSecurityError
SetShutdownMessage
(message: string) → void
FieldXML typeValue
NamestringSetShutdownMessage
SimulationRadiusChanged
(radius: float) → void
FieldXML typeValue
NamestringSimulationRadiusChanged
StatsAvailable
(info: string) → void
FieldXML typeValue
NamestringStatsAvailable