generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: clone a model part-by-part?

Previous Thread :: Next Thread 
drahsid5 is not online. 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 is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
06 Mar 2014 12:16 AM
[ Content Deleted ]
Report Abuse
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
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
bartigaholgaskinny is not online. bartigaholgaskinny
Joined: 02 Nov 2011
Total Posts: 16
06 Mar 2014 12:23 AM
^
Totally didn't copy.
Report Abuse
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
06 Mar 2014 12:25 AM
^ What I did was fix his errors
Report Abuse
drahsid5 is not online. 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
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
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 is not online. 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 is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
06 Mar 2014 12:36 AM
[ Content Deleted ]
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
06 Mar 2014 12:37 AM
@Vex My point? :P
Report Abuse
Vexedly is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
06 Mar 2014 12:38 AM
[ Content Deleted ]
Report Abuse
bartigaholgaskinny is not online. bartigaholgaskinny
Joined: 02 Nov 2011
Total Posts: 16
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 is not online. 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 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
06 Mar 2014 02:46 AM
nvm I got it.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image