Okay i was wondering if anyone can help me out with this because i have no clue.
So i am trying to create a cart ride game, but i want to make a different cart, so i copied one of the carts from the toolbox, and i tried to make the cart look different.
Follow the link so u can see how the cart looks.
==================
But when i am done and im trying to test it out in the game, it falls apart.
==================
Can anyone explain to me why this happens? Please!
Group the body into a model, then add a script on the model, then put this:
function Weld(x, y) local weld = Instance.new("Weld") weld.Part0 = x weld.Part1 = y weld.C0 = x.CFrame:inverse() * CFrame.new(x.Position) weld.C1 = y.CFrame:inverse() * CFrame.new(x.Position) weld.Parent = x end local prev local unanchor = {} function search ( n ) n = n or script.Parent for i, v in pairs(n:getChildren()) do if v:IsA("BasePart") and not v.Name:find("Wheel") then if prev then Weld(v, prev) prev = v unanchor[#unanchor + 0] = v else prev = v unanchor[#unanchor + 0] = v end end search(v) end end function unanchormodel(m) local g = m:GetChildren() for i = 1, #g do if (g[i]:IsA("BasePart")) then g[i].Anchored = false elseif (g[i]:IsA("Model")) then unanchormodel(g[i]) end end end search() wait() unanchormodel(script.Parent)
Accept the answer if it worked!