AxeOfMen
|
  |
| Joined: 14 Dec 2011 |
| Total Posts: 196 |
|
|
| 14 Jan 2012 01:06 AM |
| I have a clone of a model and I want to place it at a given CFrame and I'm not sure how to do that. I've tried creating welds between the "Head" and all the other parts, but when I set the CFrame of the "Head" all the other parts do not move with the Head. Shouldn't setting the CFrame of the head cause all the welded parts to move with the head? Or am I working under a wrong assumption? |
|
|
| Report Abuse |
|
|
|
| 14 Jan 2012 02:24 AM |
no .. actually you should use the :MoveTo() but if you do need CFrame you should just combine it with the MoveTo() function. |
|
|
| Report Abuse |
|
|
|
| 14 Jan 2012 02:28 AM |
Idk if that what you want but if you want to CFrame a whole model like I did once then you will basicly need to do the same thing I did so you may make use of this: ------ "dragon" is the name of the clone and "b" is a brick -- dragon:MoveTo(b.Position) b:remove() local g =dragon:GetChildren() for i=1, #g do if g[i]:IsA("Part") then g[i].CFrame = g[i].CFrame + person.Character.Torso.CFrame.lookVector * 6 end end |
|
|
| Report Abuse |
|
|