Skip to content

Service

The base class of the fixed services under game: Workspace, Players, Lighting and the rest.

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.

Inherited from Instance: name, archivable, id, className, parent, destroyed

Inherited from Instance: getPropertyChangedSignal, setAttribute, getAttribute, getAttributes, getAttributeChangedSignal, getChildren, getDescendants, findFirstChild, findFirstChildOfClass, findFirstChildWhichIsA, findFirstAncestor, findFirstAncestorWhichIsA, waitForChild, isA, isDescendantOf, isAncestorOf, getFullName, clearAllChildren, destroy, clone, toString

Inherited from Instance: changed, childAdded, childRemoved, descendantAdded, descendantRemoving, ancestryChanged, destroying, attributeChanged