dusteaty
|
  |
| Joined: 14 Feb 2009 |
| Total Posts: 3590 |
|
|
| 11 Jul 2011 10:33 PM |
How can I weld a Cframed vehicle together and have the vehicle stay together as I made it? I tried a Weld script but that didnt work, and put the wheels into another model, Vehicle's wheels moved though.. so it works but doesnt stay together. Here's the Script:
local prev local parts = script.Parent:GetChildren() for i = 1,#parts do if (parts[i].className == "Part") then if (prev ~= nil)then local weld = Instance.new("Weld") weld.Part0 = prev weld.Part1 = parts[i] weld.C0 = prev.CFrame:inverse() weld.C1 = parts[i].CFrame:inverse() weld.Parent = prev end prev = parts[i] prev.Anchored = false end end |
|
|
| Report Abuse |
|
|
dusteaty
|
  |
| Joined: 14 Feb 2009 |
| Total Posts: 3590 |
|
| |
|
pauljkl
|
  |
| Joined: 23 Oct 2008 |
| Total Posts: 9364 |
|
|
| 12 Jul 2011 12:58 PM |
| Anchor the car first, then run the script |
|
|
| Report Abuse |
|
|
dusteaty
|
  |
| Joined: 14 Feb 2009 |
| Total Posts: 3590 |
|
|
| 12 Jul 2011 01:10 PM |
| It still breaks even with the script and anchored.. |
|
|
| Report Abuse |
|
|