Ad
Log in to vote
0

I can not get my boat to rotate/turn?

Asked by 5 months 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 206 — 5mo
0
^^ FiredDusk 1347 — 5mo

Hi.

Looks like you're using an ad blocker.

That's fine...

No, it really is.

Just, I mean, we put a lot of work into this site, you know?

It would be really really appreciated if you would turn off your ad blocker for our website...

We tried really hard to make our ads as unobtrusive as possible.

If you really hate ads, would you consider a $2 donation via Patreon?

Here's the link.

We love you. We hope you love us too.

.

..

...

Now back to your regularly scheduled Scripting Helpers....

...

..

.

Answer this question



Ad