drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 06 Mar 2014 12:13 AM |
I'm not sure how I'd do this; but I want to clone a model part-by part. I'm thinking I'd get children of the model, and use a for do loop. I'm not exactly sure how I'd clone everything though. |
|
|
| Report Abuse |
|
|
Vexedly
|
  |
| Joined: 15 Sep 2006 |
| Total Posts: 7011 |
|
| |
|
|
| 06 Mar 2014 12:18 AM |
Model = game.Workspace.Sniper ClonedModel = game.Workspace.Model
for _, v in pairs(Model:GetChildren())do wait(1) v:clone().Parent = ClonedModel end |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Mar 2014 12:25 AM |
^ What I did was fix his errors
|
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 06 Mar 2014 12:27 AM |
How would I be able to detect the percentage of what clones? I'm I'm thinking it's be something like ?/#v |
|
|
| Report Abuse |
|
|
|
| 06 Mar 2014 12:29 AM |
Model = game.Workspace.Sniper ClonedModel = game.Workspace.Model percent = 0 for _, v in pairs(Model:GetChildren())do wait(1) print(percent..'%' v:clone().Parent = ClonedModel percent = percent + 1 end |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 06 Mar 2014 12:35 AM |
I don't understand how that'd give me the percent... To calculate the percent you'd divide how much was clones buy how many to clone.. |
|
|
| Report Abuse |
|
|
Vexedly
|
  |
| Joined: 15 Sep 2006 |
| Total Posts: 7011 |
|
| |
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
| |
|
Vexedly
|
  |
| Joined: 15 Sep 2006 |
| Total Posts: 7011 |
|
| |
|
|
| 06 Mar 2014 12:53 AM |
@Gragger, His had no errors. Since OP didn't state any specifics, you've basically modified it to your liking and added in a random wait causing the script to become disorganized. In your second attempt you forgot to close the print and didn't add what was specified. |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 06 Mar 2014 02:35 AM |
| either my script is malfunctioning, or its nt working in online mode :/ |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
| |
|