LV1Z
|
  |
| Joined: 23 Jul 2011 |
| Total Posts: 652 |
|
|
| 19 Nov 2013 07:33 PM |
if model:GetChildren():IsA("Part") then model.CFrame = CFrame.new(1,1,1) end
would the parts move? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
|
| 19 Nov 2013 07:34 PM |
No.
Model:MoveTo(Vector3.new(1,1,1)) |
|
|
| Report Abuse |
|
|
LV1Z
|
  |
| Joined: 23 Jul 2011 |
| Total Posts: 652 |
|
|
| 19 Nov 2013 07:35 PM |
| Is MoveTo() the same as CFrame-ing each part? |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2013 07:36 PM |
| It just sets the models position just like CFrame would. You just can't rotate with MoveTo. |
|
|
| Report Abuse |
|
|
LV1Z
|
  |
| Joined: 23 Jul 2011 |
| Total Posts: 652 |
|
|
| 19 Nov 2013 07:41 PM |
Another question, sorry:
how do you get the center of the model? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 19 Nov 2013 07:46 PM |
| ^ You don't without math, and it doesn't move it like CFrame, it moves it like Vector3, aka collision detecting |
|
|
| Report Abuse |
|
|
LV1Z
|
  |
| Joined: 23 Jul 2011 |
| Total Posts: 652 |
|
|
| 19 Nov 2013 07:53 PM |
| By math u mean finding the midpoint the centroids in side the triangles inside the rectangular model? |
|
|
| Report Abuse |
|
|
LV1Z
|
  |
| Joined: 23 Jul 2011 |
| Total Posts: 652 |
|
|
| 19 Nov 2013 07:54 PM |
| All I'm trying to make is the doors like the ones in Flood Escape |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2013 07:55 PM |
for i,v in pairs(model:GetChildren()) do if v:IsA("Part") then for i=1,10 do --replace 10 with your number v.CFrame = v.CFrame + Vector3.new(0,0,0) --vector there wait(0.1) end end end |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 19 Nov 2013 08:08 PM |
| By getting all the parts position and averaging it |
|
|
| Report Abuse |
|
|