Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I can not get my boat to rotate/turn?

Asked by 7 years ago

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()

0
Please could you properly format your code so it's understandable for SH Community so the helping process is faster? The button that you need to click is https://gyazo.com/06a84d5605cbad36039dd07cdd6ebbc8 put the code inside. iDarkGames 483 — 7y
0
^^ FiredDusk 1466 — 7y

Answer this question