So I had a car that worked perfectly fine, and one day they randomly started turning the opposite direction than originally. This is the part of the script that controls that motor turning, any help?
after some more testing, I found that this was the script that controls this, this first script is full and is local, the 2nd script is server and is only part of the original 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(30-RemoteControlled.Velocity.magnitude/4)
end
if car:FindFirstChild("RightMotor") then
car.RightMotor.DesiredAngle = seat.Steer*math.rad(30-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
SECOND SCRIPT (SERVER)
while true do
for i = 1, 60 do--60/30 == 2, 2 seconds between deciding if it's upside down
wait()-- we want the steering and sfx to update as many times a second as we can
if workspace.FilteringEnabled then
if car:FindFirstChild("LeftMotor") then
car.LeftMotor.DesiredAngle = seat.Steer*math.rad(60-RemoteControlled.Velocity.magnitude/4)
end
if car:FindFirstChild("RightMotor") then
car.RightMotor.DesiredAngle = seat.Steer*math.rad(60-RemoteControlled.Velocity.magnitude/4)
end
end

5 comments
did you edit it when it worked perfectly fine?
try swapping the left and right stuff?
No I never edited it when it was fine, and yes I did try to swap but I probably didn't do it right.
Positive rotation goes counterclockwise; negative rotation goes clockwise.
Well I have been testing it for a while now.Its weird, I was able to get it going the right way, but only if you have been driving like a second, otherwise it turns the wrong way. Also, if I turn it while not moving, the wheels will get all messed up when I start to drive and turn.