Clone (Function): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer No edit summary |
>Mr Doom Bringer Reverted edits by Mr Doom Bringer (Talk) to last version by Travisdep |
||
Line 1: | Line 1: | ||
{{Function| | |||
name = Clone | name = Clone | ||
|arguments = | |arguments = | ||
Line 8: | Line 5: | ||
|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 | ||
|}} | |}} | ||
==Example== | |||
<pre> | <pre> | ||
while true do | |||
model = game.Workspace.Model:clone() | |||
model.Parent = game.Workspace | |||
wait(300) | |||
end</pre> | |||
==or== | |||
<pre> | |||
while true do | |||
mgame.Workspace.Model:Clone().Parent = game.Workspace | |||
wait(300) | |||
end</pre> | |||
which does the same thing........... | |||
Revision as of 21:02, 22 April 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 mgame.Workspace.Model:Clone().Parent = game.Workspace wait(300) end
which does the same thing...........