Clone (Function): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Anaminus No edit summary |
>ArceusInator Services cannot be cloned |
||
Line 19: | Line 19: | ||
end | end | ||
</pre> | </pre> | ||
Services cannot be cloned | |||
<pre> | |||
local new_workspace = Workspace:clone() --> Unknown object class "Workspace" while reading XML</pre> | |||
}} | }} | ||
== Limitations == | == Limitations == | ||
Objects with their [[Archivable (Property)|archivable]] property set to false are not cloned. | *Objects with their [[Archivable (Property)|archivable]] property set to false are not cloned. | ||
*Services cannot be cloned. | |||
Revision as of 21:41, 27 December 2010
Description
Example
local Model = game.Workspace.Model while true do local ModelCopy = Model:Clone() ModelCopy.Parent = game.Workspace wait(300) end
Services cannot be cloned
local new_workspace = Workspace:clone() --> Unknown object class "Workspace" while reading XML
Limitations
- Objects with their archivable property set to false are not cloned.
- Services cannot be cloned.