PlayerScripts

Show Deprecated
Not Creatable
Not Replicated

PlayerScripts is a container object located inside Player objects within the Players game service. It is created automatically when a player joins the game. Its main purpose is to contain LocalScripts copied from the StarterPlayerScripts container within the StarterPlayer game service, which happens once upon creation. Descendant LocalScripts of PlayerScripts will run code on the client of the Player.

Unlike the Backpack and PlayerGui containers, the PlayerScripts container is not accessible to the server. Server Script objects will not run when parented to PlayerScripts.

Summary

Properties

Events

Methods


Unregisters all ComputerCameraMovementMode enums from the game settings menu.


Unregisters all ComputerMovementMode enums from the game settings menu.


Unregisters all TouchCameraMovementMode enums from the game settings menu.


Unregisters all TouchMovementMode enums from the game settings menu.


Registers that a computer camera movement mode is available to be selected from the game menu.


Registers that a computer movement mode is available to be selected from the game menu.


Registers that a touch camera movement mode is available to be selected from the game menu.


Registers that a touch movement mode is available to be selected from the game menu.

Properties

Events

ComputerCameraMovementModeRegistered

Roblox Script Security

ComputerMovementModeRegistered

Roblox Script Security

TouchCameraMovementModeRegistered

Roblox Script Security

TouchMovementModeRegistered

Roblox Script Security

Methods

ClearComputerCameraMovementModes

void

Unregisters all ComputerCameraMovementMode enums from the game settings menu.


Returns

void

ClearComputerMovementModes

void

Unregisters all ComputerMovementMode enums from the game settings menu.


Returns

void

ClearTouchCameraMovementModes

void

Unregisters all TouchCameraMovementMode enums from the game settings menu.


Returns

void

ClearTouchMovementModes

void

Unregisters all TouchMovementMode enums from the game settings menu.


Returns

void

This return is void as nothing is returned.

GetRegisteredComputerCameraMovementModes

Roblox Script Security

Returns

GetRegisteredComputerMovementModes

Roblox Script Security

Returns

GetRegisteredTouchCameraMovementModes

Roblox Script Security

Returns

GetRegisteredTouchMovementModes

Roblox Script Security

Returns

RegisterComputerCameraMovementMode

void

Registers that a computer camera movement mode is available to be selected from the game menu.

Parameters

cameraMovementMode: ComputerCameraMovementMode

Returns

void

RegisterComputerMovementMode

void

Registers that a computer movement mode is available to be selected from the game menu.

Parameters

movementMode: ComputerMovementMode

Returns

void

RegisterTouchCameraMovementMode

void

Registers that a touch camera movement mode is available to be selected from the game menu.

Parameters

cameraMovementMode: TouchCameraMovementMode

Returns

void

RegisterTouchMovementMode

void

Registers that a touch movement mode is available to be selected from the game menu.

Parameters

movementMode: TouchMovementMode

Returns

void