Car wont steer while slowing down

I made a car from a tutorial, however the car I made wont turn when I’m slowing down

local seat = script.Parent.VehicleSeat

local backLeft = script.Parent.BackLeft
local backRight = script.Parent.BackRight

local frontLeft = script.Parent.FrontLeft
local frontRight = script.Parent.FrontRight

local steerAngle = 30
local speed = 60

seat:GetPropertyChangedSignal("Steer"):Connect(function()
	frontLeft.PartB.SteeringConstraint.TargetAngle = steerAngle * seat.Steer
	frontRight.PartB.SteeringConstraint.TargetAngle = steerAngle * seat.Steer
end)

seat:GetPropertyChangedSignal("Throttle"):Connect(function()
	frontLeft.Wheel.WheelConstraint.AngularVelocity = speed * seat.Throttle
	frontRight.Wheel.WheelConstraint.AngularVelocity = speed * -seat.Throttle

	backLeft.Wheel.WheelConstraint.AngularVelocity = speed * seat.Throttle
	backRight.Wheel.WheelConstraint.AngularVelocity = speed * -seat.Throttle
end)

heres the tutorial I used: https://www.youtube.com/watch?v=zmGf3Pn7zmk&ab_channel=InsiderTech

1 Like

Looks like a physics constraint based system, according to physics no friction means no steering.

Therefore have you tried to change the friction property or even the wheel shape? Size of the wheel seems small as well I would also try changing it to see if antything else changes.

As @dthecoolest said, you have to balance all the same factors as a real car.
Wheel Density and Friction
Car mass
Acceleration of the wheel motors (Don’t use the default MotorMaxAcceleration of inf, whatever you do. Try 10 or 20).
Your wheels are spinning. The small size of the wheel on the ground, the lack of Friction, and probably default Density are going against you.

You can do a simple trick like putting a + sign decal (or another simple decal) on the wheel to see how it’s spinning compared to the ground.

1 Like

I got it to work by decreasing the MotorMaxAcceleration property thanks!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.