I made a nice boat but I am having trouble, the boat will only go forward and will not turn can someone look at the script and tell me what is wrong?
wait(1)
local seat,main = script.Parent.VehicleSeat,script.Parent.Main local move,gyro = main.Move,main.Gyro
function Control() gyro.cframe = CFrame.new(main.CFrame.lookVector,(main.CFrame.lookVector2)) main.Anchored = false while (true) do local max = seat.MaxSpeed local spdRatio = (main.Velocity.magnitude/(max == 0 and 1 or max)) spdRatio = (spdRatio < -1 and -1 or spdRatio > 1 and 1 or spdRatio) gyro.cframe = (gyro.cframeCFrame.Angles(0,math.rad(-seat.Steerseat.TurnSpeedspdRatio),0)) move.velocity = (main.CFrame.lookVector(maxseat.Throttle)) wait(0.1) end end
Control()