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.
Methods
Methods of `ReplicatedStorage`.- FindFirstChild:
Instance|nil - GetChildren:
{ Instance } - WaitForChild:
Instance
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 = ReplicatedStorageProperties
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 suppliedname, ornilwhen none is found.
Parameters
name:string— the child name to find.
GetChildren()
{ Instance }
Returns the direct children ofReplicatedStorage.
WaitForChild()
Instance
ReplicatedStorage:WaitForChild(name: string)
Waits for and returns a direct child with the suppliedname.
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.