Skip to content

StarterPlayerScripts

What is StarterPlayerScripts?

StarterPlayerScripts is a container inside the StarterPlayer service that stores client-side scripts. These scripts are automatically copied to a player’s PlayerScripts container when they join the experience.

It is commonly used for scripts that control player-specific behavior and systems that run on the player’s device.

What is StarterPlayerScripts used for?

StarterPlayerScripts is commonly used for:

  • Client-side game systems
  • Player input handling
  • Camera systems
  • Client-side effects and animations
  • User interface logic
  • Keyboard, mouse, and controller input
  • Local player movement systems
  • Client-side visual effects

How does StarterPlayerScripts work?

Scripts placed inside StarterPlayerScripts are automatically copied into the player’s PlayerScripts container when they join the experience.

StarterPlayerScripts is primarily intended for LocalScripts, which run on the client.

Security Considerations

Do not use StarterPlayerScripts for server-side security or validation.

Client-side code should never be trusted to enforce security-sensitive logic because the client is controlled by the player.