Issue with welding and custom car system

Pretty much, I just want to weld the frame of the car together, whilst still allowing hingeconstraints to work.

The problem is that when I don’t weld any of the frame, the frame falls through the ground (it’s set to CanCollide = false), but the chassis is still there, still drivable. If I only weld one specific part it seems to be working fine, but the rest of the frame falls through the ground. However, if I weld the entire frame to the chassis, the car drives forward, however never actually turns properly, as displayed in the videos.

External Media External Media

I’ve found no solutions to my problem due to the specificity of the issue.

Below is my weld script.

for _, part in pairs(script.Parent:GetChildren()) do
	if part:IsA("BasePart") then
		
		if not part:FindFirstChildOfClass("WeldConstraint") then
			local weld = Instance.new("WeldConstraint")
			weld.Part0 = part
			weld.Part1 = script.Parent.PrimaryPart
			weld.Parent = part
		end
		
	end
end

image
image

(The car in the explorer.)

About to resend the clips. They’re not working.

replace “if part:IsA(“BasePart”) then”
with
“if part:IsA(“BasePart”) or part:IsA(“MeshPart”) then”

That won’t have any effect, as BasePart already covers MeshParts.

https://vimeo.com/1055709673?share=copy

Here are the links to both videos. Not sure why the first one did not embed.

looked at the vids, try make all the meshparts massless (possibly turn off collide to all the parts of the wheel that arent the hitbox too)

1 Like

You just fixed an issue that I’ve been losing my mind over for a couple days. Absolute G!