ReadonlyflagsThe player (i.e. a guardian angel) who has protected this player, if the player is being protected..
Whether the player was just spawned, or was spawned before joining.
ReadonlynetReadonlyownerThe player that this component belongs to.
The player ID of the player.
Whether or not this player has been protected bya guardian angel.
ReadonlyroomThe player that this player has shapeshifted as, if any.
ReadonlyspawnMark one of this player's tasks as completed.
The index of the task to complete. Note: this is not the task ID but instead the index of the player's task, as in its position in the PlayerInfo.taskStates array.
Emits a player.completetask event.
Get a certain component from the object.
The component class to get.
Murder another a player. This operation can only be called if the player is the impostor on official servers.
Due to technical limitations, this operation cannot be canceled or reverted
without advanced "breaking game", therefore it is out of scope of a single
.revert() function on the event emitted.
Emits a player.murder event.
Send a chat message as this player.
Due to technical impossibilities, this event cannot be canceled or reverted.
Emits a player.chat event.
Send a quick chat message as this player.
Due to technical impossibilities, this event cannot be canceled or reverted.
Emits a player.quickchat event.
Optionalformat: (StringNames | Player<RoomType>)[]Update this player's color. This is a host operation on official servers. Use PlayerControl.checkColor if you are calling this as not the host.
Emits a player.setcolor event.
The color to set this player's name to.
Update this player's hat. This is not a host operation unless the client does not own this player.
Emits a player.sethat event.
The hat to set this player's hat to, see Hat.
Update this player's nameplate. This is not a host operation unless the client does not own this player.
Emits a player.setnameplate event.
The nameplate to set this player's nameplate to, see Nameplate.
Update this player's name. This is a host operation on official servers. Use PlayerControl.checkName if you are calling this as not the host.
Emits a player.setname event.
The name to set this player's name to.
Update this player's pet. This is not a host operation unless the client does not own this player.
Emits a player.setpet event.
The pet to set this player's pet to, see Pet.
Update this player's skin. This is not a host operation unless the client does not own this player.
Emits a player.setskin event.
The skin to set this player's skin to, see Skin.
Change the counter at the bottom of the screen while in the lobby, usually counting down from 5 to 1. This is a host-only operation on official servers.
Emits a player.setstartcounter event.
The counter to set to.
Update this player's visor. This is not a host operation unless the client does not own this player.
Emits a player.setvisor event.
The visor to set this player's visor to, see Visor.
If you're the host, this will immediately begin a meeting Start a meeting and begin the meeting
Emits a player.startmeeting event.
Change the room's settings. Use StatefulRoom.setSettings to pass a partial game objects object. This is a host operation on official servers.
Emits a player.syncsettings event.
The full game settings object to update the settings to.
Use the moving platfrom on the map, i.e. the one on Airship.
Emits a MovingPlatformPlayerUpdateEvent | movingplatform.playerupdate event.
Represents a player object for interacting with the game and other players.
See PlayerControlEvents for events to listen to.