Clone (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer
No edit summary
>GoldenUrg
limitations
Line 27: Line 27:


which does the same thing
which does the same thing
== Limitations ==
Objects with [[Archivable (Property)|archivable]] set to false are not cloned.
These classes are known to be unclonable: [[RBX.lua.Hat (Object)|Hats]], [[Workspace]]

Revision as of 02:38, 29 May 2010

Clone( )
Returns Instance object
Description: Returns a copy of this Object and all its children. The copy's Parent is nil

Example


while true do
 model = game.Workspace.Model:clone()
 model.Parent = game.Workspace
 wait(300)
end

or


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

which does the same thing

Limitations

Objects with archivable set to false are not cloned.

These classes are known to be unclonable: Hats, Workspace