I am just trying to make a simple car that can turn accelerate and brake. I have however been stuck on an issue for a long while and cannot seem to fix this whenever I come across it when I try and make a car. Whenever I do make a car and test drive it, the front two wheels will jitter when the car accelerates and it disrupts the grip of the wheels and disrupts how the car handles at high speed. The wheels feel indecisive and very light to turn as they bounce as they hit the limit of their steering radius, what I am trying to get are wheels that stay in position and snap to one side and back to the middle when steering is 0
I’ve looked through devforum and cant find any articles that solve my problem, ive tried messing with the settings of constraints and everything but to be completely honest I have no idea what I am doing because it feels like whatever I do the properties aren’t making any positive difference.
Here’s the script
local bLeft = script.Parent.BackLeft
local bRight = script.Parent.BackRight
local fLeft = script.Parent.FrontLeft
local fRight = script.Parent.FrontRight
local seat = script.Parent.VehicleSeat
local speed = 50
local steerAngle = 10
seat:GetPropertyChangedSignal('Steer'):Connect(function()
fLeft.PartB.SteeringConstraint.TargetAngle = steerAngle*seat.Steer
fRight.PartB.SteeringConstraint.TargetAngle = steerAngle*seat.Steer
end)
seat:GetPropertyChangedSignal('Throttle'):Connect(function()
fLeft.Wheel.WheelConstraint.AngularVelocity = speed*seat.Throttle
fRight.Wheel.WheelConstraint.AngularVelocity = -speed*seat.Throttle
bLeft.Wheel.WheelConstraint.AngularVelocity = speed*seat.Throttle
bRight.Wheel.WheelConstraint.AngularVelocity = -speed*seat.Throttle
end)
Video of car:
https://youtu.be/8q1x4K0UJDI - roblox wouldnt upload video