Clone (Function): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>GoldenUrg →or: fix typo |
>GoldenUrg fix layout |
||
Line 1: | Line 1: | ||
<onlyinclude> | {| | ||
|<onlyinclude> | |||
{{Function| | {{Function| | ||
name = Clone | name = Clone | ||
Line 6: | Line 7: | ||
|description = Returns a copy of this Object and all its children. The copy's Parent is nil | |description = Returns a copy of this Object and all its children. The copy's Parent is nil | ||
|object = Global | |object = Global | ||
|}} | |}}</onlyinclude> | ||
</onlyinclude> | |} | ||
==Example== | ==Example== |
Revision as of 01:53, 18 May 2010
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...........