StarterPlayerScripts
LocalScripts here run on every player’s device.
- Inherits: Instance
- Creatable: No. Every game has exactly one, inside StarterPlayer; get it with
game.getService('StarterPlayerScripts'). - Replication: Replicated: clients get a copy, and changes the server makes reach them.
StarterPlayerScripts lives inside StarterPlayer. Every LocalScript inside it runs on each player’s device when they join: put your input, camera and effects scripts here. Like the services, it’s part of every game and can’t be moved or removed.
Properties
Section titled “Properties”Inherited from Instance: name, archivable, id, className, parent, destroyed
Methods
Section titled “Methods”Inherited from Instance: getPropertyChangedSignal, setAttribute, getAttribute, getAttributes, getAttributeChangedSignal, getChildren, getDescendants, findFirstChild, findFirstChildOfClass, findFirstChildWhichIsA, findFirstAncestor, findFirstAncestorWhichIsA, waitForChild, isA, isDescendantOf, isAncestorOf, getFullName, clearAllChildren, destroy, clone, toString
Events
Section titled “Events”Inherited from Instance: changed, childAdded, childRemoved, descendantAdded, descendantRemoving, ancestryChanged, destroying, attributeChanged