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 |
|
|
|
| 30 May 2015 08:13 AM |
| you need to do for i, v in pairs |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| Joined: 25 Mar 2015 |
| Total Posts: 396 |
|
|
| 30 May 2015 08:23 AM |
| Ok i'll try both. Thanks! C: |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 30 May 2015 08:46 AM |
| ROBLOX doesn't use hashtags. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
Moeru
|
  |
| Joined: 25 Mar 2015 |
| Total Posts: 396 |
|
|
| 30 May 2015 08:50 AM |
| Why you call me an idiot. :( |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 30 May 2015 08:51 AM |
| No, I was talking to TheNewChicken. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 25 Mar 2015 |
| Total Posts: 396 |
|
| |
|
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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 30 May 2015 09:06 AM |
| I provided a solution unlike you. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|