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 » Scripters
Home Search
 

Re: [HELP] Setting CFrames With ':GetChildren()'

Previous Thread :: Next Thread 
Moeru is not online. Moeru
Joined: 25 Mar 2015
Total Posts: 396
30 May 2015 08:10 AM
for i = 1, 100 do
Link_Clone.Parts:GetChildren().CFrame = Link_Clone.Parts:GetChildren().CFrame + Vector3.new(0, 0, 1)
wait(0.00)
end

Yeah, I thought this would work. How would I fix this?
Report Abuse
NinjaFlamez is not online. NinjaFlamez
Joined: 03 Oct 2012
Total Posts: 132
30 May 2015 08:13 AM
you need to do for i, v in pairs
Report Abuse
Moeru is not online. Moeru
Joined: 25 Mar 2015
Total Posts: 396
30 May 2015 08:15 AM
Shoot, I been reminded about this so many times and I just keep forgetting. Thanks!
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
30 May 2015 08:22 AM
@Ninja

stop misinforming

you can do pairs OR

for i = 1,#Children do

i.CFrame = blah

end

"You don't want to be their cool. Be a good person by a respectable figures point; you." ~ TheNewChicken.
Report Abuse
Moeru is not online. Moeru
Joined: 25 Mar 2015
Total Posts: 396
30 May 2015 08:23 AM
Ok i'll try both. Thanks! C:
Report Abuse
Moeru is not online. Moeru
Joined: 25 Mar 2015
Total Posts: 396
30 May 2015 08:30 AM
for i = 1, #Link_Clone.Parts:GetChildren() do
i.CFrame = i.CFrame + Vector3.new(0, 0, 1)
wait(0.001)
end

08:29:22.479 - ReplicatedStorage.Modules.Link_Start_Module:30: attempt to index local 'i' (a number value)

ERROR ^

I think I did that right.
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
30 May 2015 08:37 AM
you cant put get childrem

do like

model = parts:GetChildren()

for i = 1,#model do
end

"You don't want to be their cool. Be a good person by a respectable figures point; you." ~ TheNewChicken.
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
30 May 2015 08:42 AM
Idiot.


local model = define model
local children = model:GetChildren()

for index = 1, #children do
local child = children[index]
end
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
30 May 2015 08:45 AM
@Tri

#Reported

"You don't want to be their cool. Be a good person by a respectable figures point; you." ~ TheNewChicken.
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
30 May 2015 08:46 AM
ROBLOX doesn't use hashtags.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
30 May 2015 08:48 AM
That wasn't a hashtag; he was counting the number of items in the Reported table.
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
30 May 2015 08:48 AM
My mistake.
Report Abuse
Moeru is not online. Moeru
Joined: 25 Mar 2015
Total Posts: 396
30 May 2015 08:50 AM
Why you call me an idiot. :(
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
30 May 2015 08:51 AM
No, I was talking to TheNewChicken.
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
30 May 2015 08:54 AM
Oh wow tri, i make one mistake and im an idiot.

I think we ALL know the real one.

"You don't want to be their cool. Be a good person by a respectable figures point; you." ~ TheNewChicken.
Report Abuse
Moeru is not online. Moeru
Joined: 25 Mar 2015
Total Posts: 396
30 May 2015 08:55 AM
oh
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
30 May 2015 08:55 AM
I wouldn't say "one" and yes, it's you.
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
30 May 2015 08:55 AM
if you want to set the cframe of a model (looks like what you're doing), why not use SetPrimaryPartCFrame?
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
30 May 2015 08:59 AM
just use

for _,brick in next, children do
brick.CFrame = brick.CFrame * CFrame.n ew(50,50,50)
end

that's just an example
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
30 May 2015 09:00 AM
Tri, your a noob.

Your insulting me for a simple mistake while you sit there.

"You don't want to be their cool. Be a good person by a respectable figures point; you." ~ TheNewChicken.
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
30 May 2015 09:06 AM
I provided a solution unlike you.
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
30 May 2015 09:10 AM
Atleast i tried. You only came here to insult.

"You don't want to be their cool. Be a good person by a respectable figures point; you." ~ TheNewChicken.
Report Abuse
Moeru is not online. Moeru
Joined: 25 Mar 2015
Total Posts: 396
30 May 2015 09:13 AM
I don't know if this is how it's supposed to be;

for i = 1, #Part do
local Child = Part[i]
Child.CFrame = Child.CFrame + Vector3.new(0, 0, 1)
wait(0.001)
end

It doesn't give me an error, but it also didn't do anything.
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
30 May 2015 09:17 AM
I didn't only come here to insult, I came here to fix the broken script (like I did).

"Child.CFrame = Child.CFrame + Vector3.new(0, 0, 1)"

Try this:
Child.CFrame = Child.CFrame * CFrame.new(0, 0, 1)
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
30 May 2015 09:18 AM
@tri

both work

"You don't want to be their cool. Be a good person by a respectable figures point; you." ~ TheNewChicken.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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