Glorpia Docs
Services

ReplicatedStorage

A protected hierarchy service for stored instances that are shared with clients when their instance type is supported by replication.

Access

Luau
local ReplicatedStorage = game:GetService("ReplicatedStorage")

print(ReplicatedStorage == game.ReplicatedStorage)

Behaviour

NameTypeDescription
Client replicationsupported descendantsSupported descendants use normal server-to-client hierarchy replication.
World renderingnot in WorkspaceParts stored here are not rendered as Workspace geometry.
World physicsnot in WorkspaceParts stored here are not included in Workspace physics.
BasicSound playbackinactive while storedBasicSound outside Workspace is not played until it is moved into Workspace.
Script executiondormant while storedServerScripts and LocalScripts stored here do not execute from ReplicatedStorage in the current runtime.
RemoteEvent / RemoteFunctionreplicatedUse remotes here when both ServerScripts and LocalScripts need to resolve the same shared remote instance.

Hierarchy API

ReplicatedStorage is a protected service root. The service itself cannot be renamed, destroyed, dragged, or reparented, but supported child instances can be parented into it.

NameTypeDescription
FindFirstChild(name, recursive?)methodFinds a child by name and can search descendants when recursive is true.
FindFirstChildOfClass(className)methodFinds the first direct child with the exact class name.
GetChildren()methodReturns direct children.
GetDescendants()methodReturns every descendant.
IsA(className)methodReturns true for ReplicatedStorage or Instance as appropriate.
GetFullName()methodReturns the hierarchy name for the service.

Example: shared stored hierarchy

Luau
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local folder = Instance.new("Folder")
folder.Name = "SharedObjects"
folder.Parent = ReplicatedStorage

local part = Instance.new("Part")
part.Name = "TemplatePart"
part.Parent = folder
The Part is stored in the replicated hierarchy, but it does not become world geometry until it is parented under Workspace.

Related