Clone (Function): Difference between revisions
From Goodblox Wiki
Jump to navigationJump to search
Pizzaboxer (talk | contribs) m (Pizzaboxer moved page Clone to Clone (Function)) |
mNo edit summary |
||
Line 12: | Line 12: | ||
==Example== | ==Example== | ||
<pre> | <pre> | ||
while true do | while true do | ||
model = workspace.Model:Clone() | |||
model.Parent = workspace | |||
wait(300) | |||
end</pre> | end</pre> | ||
==or== | ==or== | ||
<pre> | <pre> | ||
while true do | while true do | ||
workspace.Model:Clone().Parent = workspace | |||
wait(300) | |||
end</pre> | end</pre> | ||
Revision as of 02:17, 22 September 2021
|
Example
while true do model = workspace.Model:Clone() model.Parent = workspace wait(300) end
or
while true do workspace.Model:Clone().Parent = workspace wait(300) end
which does the same thing
Limitations
Objects with archivable set to false are not cloned.