Hi, as you see below, my car is sliding while turning.
As you see at low speeds, it actually turns fine.
At high speeds, not only does it slide, but it also turns opposite after letting go of a direction key. It’s annoying cuz I would turn one direction but after letting the direction key go, it drags the car back to the opposite direction somewhat.
This picture shows how the constraints are set up at the front of the vehicle
local seat = script.Parent.VehicleSeat
local occupied = false
local force1 = script.Parent.base.LinearVelocity
local turn = script.Parent.base.turn -- btw this is a linearvelocity.
local currkey = nil
seat:GetPropertyChangedSignal("Throttle"):Connect(function()
print("reached")
if seat.Throttle==1 then
force1.LineVelocity=4000
force1.Enabled=true
elseif seat.Throttle==-1 then
force1.LineVelocity=-4000
force1.Enabled=true
else
force1.Enabled=false
end
end)
seat:GetPropertyChangedSignal("Steer"):Connect(function()
if seat.Steer==1 then
turn.LineVelocity=1000
turn.Enabled=true
elseif seat.Steer==-1 then
turn.LineVelocity=-1000
turn.Enabled=true
else
turn.Enabled=false
end
end)