Heres the thing, my car's steering hinges aren't steady, causing the front wheels move while in contact with other parts like sidewalks, which ends up getting stuck. Is there any way to fix this? Here's my script.

local seat = script.Parent
local car = seat.Parent

local leftdrive = car.WheelRL.WheelMount.LeftDrive
local rightdrive = car.WheelRR.WheelMount.RightDrive
local steerHinge2 = car.FrontAxle.SteerHinge
local steerHinge = car.FrontAxle.SteerHinge2
local steeringAngle = 20
local maxspeed = 85

local function onChanged(property)
	if property == "Steer" then
		steerHinge.TargetAngle = -steeringAngle * seat.Steer
		steerHinge2.TargetAngle = steeringAngle * seat.Steer
end
if property == "Throttle" then
	leftdrive.AngularVelocity = maxspeed * seat.Throttle
	rightdrive.AngularVelocity = -maxspeed * seat.Throttle 
	end
end

seat.Changed:Connect(onChanged)

1 comment

0

What I meant is that I want it the hinge constraint to stop jittering, is there a way to solve that?