Skip to content

ReplicatedStorage

Summary

ReplicatedStorage is a container for items that should be visible to both the server and the client. Items placed here will automatically get their properties synced from the server.

Properties Properties of `ReplicatedStorage`.

Methods Methods of `ReplicatedStorage`.

Parenting

Assign a Part by setting its Parent to ReplicatedStorage:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local part = Instance.new("Part")
part.Name = "SharedPart"
part.Parent = ReplicatedStorage

Properties

ClassName

string

The runtime class name of the service.


Name

string

The service name shown by the runtime.


Methods

FindFirstChild()

Instance | nil

ReplicatedStorage:FindFirstChild(name: string)

Returns the first direct child with the supplied name, or nil when none is found.

Parameters

  • name: string — the child name to find.

GetChildren()

{ Instance }

Returns the direct children of ReplicatedStorage.


WaitForChild()

Instance

ReplicatedStorage:WaitForChild(name: string)

Waits for and returns a direct child with the supplied name.

Parameters

  • name: string — the child name to wait for.

Testing Notes

These observations are from Vortex Studio 0.3.4 and may differ in later releases.

A temporary Part can be parented to ReplicatedStorage, and WaitForChild resolves it. FindFirstChild returns nil and GetChildren omits it.