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() Help

Previous Thread :: Next Thread 
Erik999 is not online. Erik999
Joined: 09 Feb 2008
Total Posts: 88
12 Apr 2013 09:04 PM
Hello, i am trying to clone a whole model and have tried a lot. I have successfully cloned just one brick but not a model. My model has only bricks, just two. I am lost, re-vamp the whole script if necessary.

function onTouched(hit)
child = game.Workspace.Blah.GetChildren()
f = game.Workspace.child[i]
for i=10,#child do
clone = child[i]:clone()
clone.Position = hit.Position
clone.Parent = game.Workspace
end
end
game.Workspace.cloneee.Touched:connect(onTouched)

thanks, need some help
Report Abuse
YellowBrick1 is not online. YellowBrick1
Joined: 06 May 2009
Total Posts: 865
12 Apr 2013 09:07 PM
I'm assuming workspace.Blah is the model you are talking about?
Report Abuse
veerstrong is not online. veerstrong
Joined: 23 Jun 2009
Total Posts: 2450
12 Apr 2013 09:15 PM
Workspace["clonee"].Touched:connect(function(p)
for _,v in pairs(Workspace["Blah"]:GetChildren()) do
if v:IsA("BasePart") then
v.Clone().Parent = Workspace
v.Position = p.Position
end
end
end)


~One must risk everything to find the truth. Even if the truth isn't what you want it to be, it is better than living a lie.~
Report Abuse
Erik999 is not online. Erik999
Joined: 09 Feb 2008
Total Posts: 88
12 Apr 2013 10:49 PM
Okay, try to simplify that? Thats just a bunch of garbage
Report Abuse
Erik999 is not online. Erik999
Joined: 09 Feb 2008
Total Posts: 88
12 Apr 2013 10:51 PM
Didnt work at all, taking the most difficult route isnt impressive, just messing me up. I read your blurp, your just a stuck up snob.. another one of those..
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
12 Apr 2013 10:54 PM
Why aren't you just using the 'Clone' method on the model, and then parenting the clone... You don't need a loop...
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
12 Apr 2013 11:02 PM
Erik99 You are one of the rudest immature 7 year old's I have seen on this forum. He was only trying to help your idiotic brain, show some respect kid.

*Blurb*
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
12 Apr 2013 11:04 PM
game.Workspace.Blah:Clone().Parent=Workspace
Report Abuse
Erik999 is not online. Erik999
Joined: 09 Feb 2008
Total Posts: 88
13 Apr 2013 12:29 AM
7? Im 14 sir, it just looked as though he was taking the hard route, when im honestly new to scripting. I read his blurb saying "too good for that" and stuff like that. I honestly hate those people. And blah blah blah hurt my feelings, iv been on reddit long enough to withstand this.
Report Abuse
jhxdghjkdhgfsg9 is not online. jhxdghjkdhgfsg9
Joined: 15 Apr 2012
Total Posts: 12
13 Apr 2013 12:32 AM
Lol
Welcome to the inernet where "3 Year olds" are smarter than you, erik.
Report Abuse
veerstrong is not online. veerstrong
Joined: 23 Jun 2009
Total Posts: 2450
13 Apr 2013 10:35 AM
Erik, if you have a problem with my blurb, guess what...
I don't care.
I go on SH when I'm bored.
Yes, I took a longer way because I was just replicating what you did, in a shorter context.
If you got a problem with that then,
Lrn2Script you 6 year old.
If my blurb honestly makes you that uncomfortable, then you honestly are just pathetic.
Saddens my what 5 year olds are becoming into these days.
You wanted help, we offered it.
If you don't appreciate it. Get Out.
My blurb just states the truth.
And me being a stuck up snob?
A 'stuck up snob' doesn't spend most of his time volunteering to assist people with whatever problems they might have.
And if a script someone offers me doesn't work, I would just say "Hey, it didn't work. What do you think the problem could be?"
Not, "lol u stuck up noob cant script1111"

Seriously, I've met 2 year old's smarter than you.


~One must risk everything to find the truth. Even if the truth isn't what you want it to be, it is better than living a lie.~
Report Abuse
Erik999 is not online. Erik999
Joined: 09 Feb 2008
Total Posts: 88
14 Apr 2013 06:06 PM
How can i be 3 if iv been on roblox for 5 years..?
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
15 Apr 2013 08:26 PM
I've*
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
15 Apr 2013 08:31 PM
@Erik
Your being kinda rude.

Just clone the model the way you would clone a brick

Workspace.Blah:Clone().Parent = Workspace

Please leave.
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
15 Apr 2013 08:34 PM
^That's exactly what I said above.
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
15 Apr 2013 09:12 PM
@Sam
Sorry, I didn't feel like reading most of this thread when I saw it was mostly Erik acting like a brat
Report Abuse
Erik999 is not online. Erik999
Joined: 09 Feb 2008
Total Posts: 88
16 Apr 2013 01:39 PM
Ahg you guys are so stuck up. Why do you use so much grammar? WHO CARES? Its a kids website. I honestly dont give a rat about anything, make fun of me all you want.
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
16 Apr 2013 01:49 PM
We use grammar because its eaiser to read.
I guess you care, your complaining.
Kids shouldn't use grammar? Why do they teach it in school?
Rats ass*
No one made fun of you, we helped and you got mad and we pointed out you're being rude.
Report Abuse
ForceSky is not online. ForceSky
Joined: 30 Jul 2012
Total Posts: 2379
16 Apr 2013 02:51 PM
Erik, these people are trying to help you. And, if you know how to use tables you should know about veerstrong's script. Do not diss the people who help you. And you say you're 14. And hate grammar. Read this: i wl gve cerd 2 poepe 4 buidig vhoecl. Plus, if someone who helps you accidentally does something wrong, you should NOT go on their profile and flame them. I'm a year older than you and I am evidently more mature than you.
Report Abuse
Erik999 is not online. Erik999
Joined: 09 Feb 2008
Total Posts: 88
16 Apr 2013 09:40 PM
Listen, im not saying im going to type everything like that, but tiny little things? I honestly dont care. Anyways you people are good at arguing (see youv done alot of it) and I honestly dont want to get mixed up in it..
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
16 Apr 2013 09:40 PM
Then...
Get out.
Report Abuse
Erik999 is not online. Erik999
Joined: 09 Feb 2008
Total Posts: 88
16 Apr 2013 10:43 PM
My thread
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
16 Apr 2013 11:50 PM
Dude. leave. now.
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
16 Apr 2013 11:56 PM
^^^^^^^^^^^^^
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
17 Apr 2013 03:03 AM
We use grammar for Lua, its kind of a practice that perfects it.
These guys were just trying to help, they didnt have to help you.
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