Clone (Function)

From Legacy Roblox Wiki
Revision as of 22:41, 24 October 2010 by >Anaminus
Jump to navigationJump to search
Clone( )
Returns Instance object
Description: Returns a copy of this Object and all its children. The copy's Parent is nil

Description

Example
local Model = game.Workspace.Model
while true do
    local ModelCopy = Model:Clone()
    ModelCopy.Parent = game.Workspace
    wait(300)
end


Limitations

Objects with their archivable property set to false are not cloned.

The following classes cannot be cloned: