(I always press W and A, D)
as you can see sometimes work well but, sometimes it’ll stop or go backward
I don’t know how to make velocity working
here is an code
while true do
local SteerTotal = Seat.SteerFloat * MAXTorque
CurrentTorque = CurrentTorque + (-SteerTotal - CurrentTorque) * math.min(1/60 * Seat.TurnSpeed, 1)
FLAtt.Orientation = Vector3.new(FLAtt.Orientation.X, CurrentTorque, FLAtt.Orientation.Z)
FRAtt.Orientation = Vector3.new(FRAtt.Orientation.X, CurrentTorque, FRAtt.Orientation.Z)
local ThrottleNum = MAXVel * Seat.Throttle * multiply
local Velocity = -Seat.CFrame.LookVector.Unit * ThrottleNum
SetAngularVelocity(Velocity)
wait()
end