|
| 24 Nov 2012 02:52 AM |
Is there any way I can make it so that serten parts/models are not welded to the body with a serten name ?
Like if I call a part/model inside a car then it will not be welded to the body.
function Weld(x,y) local W = Instance.new("Weld") W.Part0 = x W.Part1 = y local CJ = CFrame.new(x.Position) local C0 = x.CFrame:inverse()*CJ local C1 = y.CFrame:inverse()*CJ W.C0 = C0 W.C1 = C1 W.Parent = x end
function Get(A) if (A.className == "Part") or (A.className == "Seat") or (A.className == "WeggePart") or (A.className == "CornerWeggePart") then Weld(script.Parent.MainPart, A) else local C = A:GetChildren() for i=1, #C do Get(C[i]) end end end
function Finale() Get(script.Parent) end
Finale() |
|
|
| Report Abuse |
|
| |