So I have different sandwich parts in a tool, and the parts are together in a tool. I have this welding script, and I am wondering why it is not working. I named one part engine, as you do to activate it.
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") then Weld(script.Parent.Engine, A) else local C = A:GetChildren() for i=1, #C do Get(C[i]) end end end function Finale() Get(script.Parent) end Finale()