Service
The base class of the fixed services under game: Workspace, Players, Lighting and the rest.
- Inherits: Instance
- Subclasses: Lighting, Players, ReplicatedStorage, ServerScriptService, ServerStorage, StarterGui, StarterPlayer, Workspace
- Creatable: No. It’s an abstract base class: create one of its subclasses, and check for it with
instanceoforisA('Service'). - Replication: Replicated: clients get a copy, and changes the server makes reach them.
Every game has exactly one of each service, created with the game. Services can’t be created,
moved or destroyed, and Rally Studio doesn’t let you rename them. Service isn’t exported from
@rally/sdk; to check whether an instance is a service, use instance.isA('Service').
game itself (DataModel) and
StarterPlayerScripts are also fixed parts of every game,
but they aren’t services.
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