rojo/.cursor/rules/roblox/reference/engine/classes/PlayerScripts.yaml
2026-02-02 12:08:47 -06:00

185 lines
5.3 KiB
YAML

# This file is automatically generated. Please don't edit it manually.
# To submit a bug report on the content, see
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
name: PlayerScripts
type: class
memory_category: Instances
summary: |
A container for LocalScripts to be run on the client.
description: |
`Class.PlayerScripts` is a container object located inside `Class.Player`
objects within the `Class.Players` game service. It is created automatically
when a player joins the game. Its main purpose is to contain
`Class.LocalScript|LocalScripts` copied from the `Class.StarterPlayerScripts`
container within the `Class.StarterPlayer` game service, which happens once
upon creation. Descendant `LocalScripts` of `Class.PlayerScripts` will run
code on the client of the `Class.Player`.
Unlike the `Class.Backpack` and `Class.PlayerGui` containers, the
`Class.PlayerScripts` container is not accessible to the server. Server
`Class.Script` objects will not run when parented to `Class.PlayerScripts`.
code_samples: []
inherits:
- Instance
descendants: []
tags:
- NotCreatable
- NotReplicated
deprecation_message: ''
properties: []
methods:
- name: PlayerScripts:ClearComputerCameraMovementModes
summary: |
Unregisters all ComputerCameraMovementMode enums from the experience's
settings menu.
description: |
Unregisters all ComputerCameraMovementMode enums from the experience's
settings menu.
code_samples: []
parameters: []
returns:
- type: ()
summary: ''
tags: []
deprecation_message: ''
security: None
thread_safety: Unsafe
capabilities: []
- name: PlayerScripts:ClearComputerMovementModes
summary: |
Unregisters all ComputerMovementMode enums from the experience's settings
menu.
description: |
Unregisters all ComputerMovementMode enums from the experience's settings
menu.
code_samples: []
parameters: []
returns:
- type: ()
summary: ''
tags: []
deprecation_message: ''
security: None
thread_safety: Unsafe
capabilities: []
- name: PlayerScripts:ClearTouchCameraMovementModes
summary: |
Unregisters all TouchCameraMovementMode enums from the experience's
settings menu.
description: |
Unregisters all TouchCameraMovementMode enums from the experience's
settings menu.
code_samples: []
parameters: []
returns:
- type: ()
summary: ''
tags: []
deprecation_message: ''
security: None
thread_safety: Unsafe
capabilities: []
- name: PlayerScripts:ClearTouchMovementModes
summary: |
Unregisters all TouchMovementMode enums from the experience's settings
menu.
description: |
Unregisters all TouchMovementMode enums from the experience's settings
menu.
code_samples: []
parameters: []
returns:
- type: ()
summary: ''
tags: []
deprecation_message: ''
security: None
thread_safety: Unsafe
capabilities: []
- name: PlayerScripts:RegisterComputerCameraMovementMode
summary: |
Registers that a computer camera movement mode is available to be selected
from the game menu.
description: |
Registers that a computer camera movement mode is available to be selected
from the game menu.
code_samples: []
parameters:
- name: cameraMovementMode
type: ComputerCameraMovementMode
default:
summary: ''
returns:
- type: ()
summary: ''
tags: []
deprecation_message: ''
security: None
thread_safety: Unsafe
capabilities: []
- name: PlayerScripts:RegisterComputerMovementMode
summary: |
Registers that a computer movement mode is available to be selected from
the game menu.
description: |
Registers that a computer movement mode is available to be selected from
the game menu.
code_samples: []
parameters:
- name: movementMode
type: ComputerMovementMode
default:
summary: ''
returns:
- type: ()
summary: ''
tags: []
deprecation_message: ''
security: None
thread_safety: Unsafe
capabilities: []
- name: PlayerScripts:RegisterTouchCameraMovementMode
summary: |
Registers that a touch camera movement mode is available to be selected
from the game menu.
description: |
Registers that a touch camera movement mode is available to be selected
from the game menu.
code_samples: []
parameters:
- name: cameraMovementMode
type: TouchCameraMovementMode
default:
summary: ''
returns:
- type: ()
summary: ''
tags: []
deprecation_message: ''
security: None
thread_safety: Unsafe
capabilities: []
- name: PlayerScripts:RegisterTouchMovementMode
summary: |
Registers that a touch movement mode is available to be selected from the
game menu.
description: |
Registers that a touch movement mode is available to be selected from the
game menu.
code_samples: []
parameters:
- name: movementMode
type: TouchMovementMode
default:
summary: ''
returns:
- type: ()
summary: ''
tags: []
deprecation_message: ''
security: None
thread_safety: Unsafe
capabilities: []
events: []
callbacks: []