StarterPlayerScripts

Mostrar obsoleto
Não criável

StarterPlayerScripts is a container object located within the StarterPlayer service. It can contain LocalScripts and other objects to be copied to the PlayerScripts container once when a Player joins the game. For example, if you want to create special effects on the client when certain conditions are met, you can place a LocalScript within this container to do that.

This object is also a good place for LocalScripts that define additional inputs with ContextActionService. For inputs that are only relevant when a player has spawned in, you can use ContextActionService:BindAction() when the Players.LocalPlayer character spawns, then use ContextActionService:UnbindAction() when they die or despawn.

When an experience is run, this object will also house the default multi-platform Roblox control scripts for the camera and character. If LocalScripts named CameraScript or ControlScript are placed within this container, they will replace the Roblox defaults for those scripts respectively. If desired, you can add empty LocalScripts for each of these to disable them altogether; this is useful for experiences that do not follow the typical control paradigms of a Roblox experience.

Propriedades

Métodos

Eventos