ROBOFROG
|
  |
| Joined: 04 Jan 2009 |
| Total Posts: 1519 |
|
|
| 26 Aug 2014 08:07 PM |
As the title states, I'm just curious on the "Clone()" instance, since the wiki doesn't really have much information on it. I'm curious on the following things:
* Does this actually create another copy of the object to manipulate? * What are all the parameters it can be loaded with? * If not answered previously, how can I specify where the object (in this case, script) is "cloned" to?
Thanks for reading, and I appreciate any information! |
|
|
| Report Abuse |
|
|
|
| 26 Aug 2014 08:08 PM |
Copies the instance and all of its children
So if I have
Workspace > Part >> Script >> Mesh
I say game.Workspace.Part:Clone().Parent = game.Workspace
makes a 2nd part with a Script and a Mesh |
|
|
| Report Abuse |
|
|
|
| 26 Aug 2014 08:09 PM |
Yes Nil Define it as a variable or use a one liner like so: ClonedObject = Object:Clone() -- can now be used like any other variable reffering to an object ClonedObject.Parent = Workspace Object:Clone().Parent = Workspace |
|
|
| Report Abuse |
|
|
| |
|
ROBOFROG
|
  |
| Joined: 04 Jan 2009 |
| Total Posts: 1519 |
|
|
| 26 Aug 2014 08:11 PM |
Oh, that seems simple enough, thanks for the information thus far!
Based on your replies, I'm guessing what you set it equal to is the location it is then placed? |
|
|
| Report Abuse |
|
|