Clone (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Anaminus
No edit summary
>Camoy
Redirecting to Clone (Method)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|
#REDIRECT [[Clone_(Method)]]
|<onlyinclude>
{{Function|
name                  = Clone
|arguments            =
|returns              = [[Instance]] object
|description          = Returns a copy of this Object and all its children. The copy's Parent is nil
|object              = [[Instance]]
|}}</onlyinclude>
|}
==Description==
{{Example|
<pre>
local Model = game.Workspace.Model
while true do
    local ModelCopy = Model:Clone()
    ModelCopy.Parent = game.Workspace
    wait(300)
end
</pre>
}}
 
== Limitations ==
Objects with their [[Archivable (Property)|archivable]] property set to false are not cloned.
 
The following classes cannot be cloned:
*[[RBX.lua.Hat (Object)|Hat]]
*[[Workspace]]

Latest revision as of 21:54, 27 December 2010

Redirect to: