|
| 03 Aug 2017 06:09 PM |
| after using the inbuilt function, clone, how do you set a name on it and more importantly set a parent for it? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 03 Aug 2017 06:19 PM |
Clone returns the new object. If you're going to write to more than one property, declare a reference to the object.
local clone = object:Clone()
|
|
|
| Report Abuse |
|
|
|
| 03 Aug 2017 06:20 PM |
what i want to do is, after cloning something, i want to set a parent for it |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 03 Aug 2017 06:24 PM |
| ohhh nevermind i see what you were saying now |
|
|
| Report Abuse |
|
|
imepic457
|
  |
| Joined: 21 Dec 2012 |
| Total Posts: 212 |
|
|
| 03 Aug 2017 06:24 PM |
| pretty much you can use the variable for the clone like a normal instance. you can do this for example: clone.Size = Vector3.new(1,1,1) |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2017 06:26 PM |
"pretty much you can use the variable for the clone like a normal instance"
That's because it IS a normal instance.
|
|
|
| Report Abuse |
|
|