Services
ServerStorage
A protected server-only hierarchy service for instances that should not be part of the normal client-replicated tree.
Access
Luau
local ServerStorage = game:GetService("ServerStorage")
print(ServerStorage == game.ServerStorage)Behaviour
| Name | Type | Description |
|---|---|---|
Client replication | excluded | The ServerStorage tree is excluded from normal client replication. |
World rendering | not in Workspace | Parts stored here are not rendered as Workspace geometry. |
World physics | not in Workspace | Parts stored here are not included in Workspace physics. |
BasicSound playback | inactive while stored | BasicSound outside Workspace is not played until moved into Workspace. |
ServerScript execution | dormant while stored | ServerScripts do not execute while stored under ServerStorage. |
Hierarchy API
The service root cannot be renamed, destroyed, dragged, or reparented. Supported child instances can be inserted, parented, moved, and removed normally.
| Name | Type | Description |
|---|---|---|
FindFirstChild(name, recursive?) | method | Finds a child by name. |
FindFirstChildOfClass(className) | method | Finds the first direct child with the exact class name. |
GetChildren() | method | Returns direct children. |
GetDescendants() | method | Returns every descendant. |
IsA(className) | method | Checks the service class or Instance base class. |
GetFullName() | method | Returns ServerStorage. |
Example: move a stored template into Workspace
Luau
local ServerStorage = game:GetService("ServerStorage")
local template = ServerStorage:FindFirstChild("TemplatePart")
if template then
template.Parent = workspace
endOnce a Part is parented into Workspace, it becomes part of the live world hierarchy and can participate in rendering and physics.