Storage
Non-simulated, non-replicated container. Objects inside are inactive until cloned or reparented into the world.
local Storage = game:GetService("Storage")Objects in Storage are not rendered, do not collide and are not replicated to clients. Scripts inside stored objects do not run. An object becomes active when it is cloned or reparented into the world. In Studio, Storage appears at the bottom of the Explorer and its contents are hidden from the viewport. A typical use is holding maps for a round system.
Methods
FindFirstChild
Storage:FindFirstChild(name: string): Stored?Returns the top-level stored object with the given name, or nil. Children can also be indexed by name, for example Storage.Maps.
GetChildren
Storage:GetChildren(): { Stored }Returns every top-level stored object.
Stored objects
Objects inside Storage expose Name, ClassName, Parent, Value (value objects only), FindFirstChild and GetChildren.
Clone
stored:Clone(): Model | PartClones the object into the world and returns the clone. The original remains in Storage. Scripts in the clone start and NPCs in the clone are simulated.
local copy = Storage.Maps.Arena:Clone()
copy:MoveTo(Vector3.new(0, 0, 400))
task.wait(60)
copy:Destroy()Parent
stored.Parent = WorldMoves the object out of Storage into the world, or into a model or part in the world. The object is moved, not copied.
Storage.Prize.Parent = game:GetService("World")Notes
- Group related objects under one model, for example
Storage.Maps, and enumerate them withGetChildren(). - A part named
Spawninside each map gives scripts a known teleport target. - Clones count toward the world's part limit. Destroy clones that are no longer needed.