I tested out my car steering earlier on, and I noticed that the steering is inverted, and I’m confused on how. Here’s my steering script.
wait(1)
SeatValue = script:WaitForChild(“Seat”)
if SeatValue:IsA(“ObjectValue”) and SeatValue.Value and SeatValue.Value:IsA(“VehicleSeat”) then
seat = SeatValue.Value
car = seat.Parent
if seat:FindFirstChild("RocketPropulsion") then
seat.RocketPropulsion:Fire()
end
local RemoteControlled = car:FindFirstChild("ControlByRemote")
while seat:FindFirstChild("SeatWeld") and RemoteControlled do
wait()
if not RemoteControlled:IsA("VehicleSeat") then
break
end
RemoteControlled.Throttle = seat.Throttle
if car:FindFirstChild("LeftMotor") then
car.LeftMotor.DesiredAngle = seat.Steer*math.rad(45-RemoteControlled.Velocity.magnitude/4)
end
if car:FindFirstChild("RightMotor") then
car.RightMotor.DesiredAngle = seat.Steer*math.rad(45-RemoteControlled.Velocity.magnitude/4)
end
if car:FindFirstChild("Configuration") then
if seat.Throttle == 1 and car.Configuration:FindFirstChild("Forwards Speed") then
RemoteControlled.MaxSpeed = car.Configuration["Forwards Speed"].Value
elseif seat.Throttle == 0 then
RemoteControlled.MaxSpeed = 0
elseif seat.Throttle == -1 and car.Configuration:FindFirstChild("Reverse Speed") then
RemoteControlled.MaxSpeed = car.Configuration["Reverse Speed"].Value
end
end
end
if seat:FindFirstChild("RocketPropulsion") then
seat.RocketPropulsion:Abort()
end
end
script:Destroy()