How would I make my helicopter tilt towards where it is going?

Hello fellow developers!

I have been trying to make a good helicopter for a while and have finally done it! But there’s one problem… It doesn’t tilt :frowning:

I just want the helicopter to tilt forwards when going forwards, tilt back when going back, tilt right when turning right and tilt left while turning left. I already have a body gyro doing the turning but it only changes the CFrame and doesn’t actually tilt. Any way to do so?

Here is my script that does the main movement:

BodyGyro.CFrame = BodyGyro.CFrame * CFrame.Angles(0, math.rad(-Seat.TurnSpeed * Seat.Steer), 0)

BodyVelocity.Velocity = Vector3.new(throttle * Seat.MaxSpeed, BodyVelocity.Velocity.Y, throttle * Seat.MaxSpeed) * Seat.CFrame.LookVector

My helicopter so far:

https://drive.google.com/file/d/17TkLmgtwYmd48O4_rFQGFQ9ntVnJMchS/view?usp=sharing

Is there any way to tilt the helicopter? Thanks for the help!

I would really appreciate if someone could help!

Though I’m no scripter, I found an extremely useful resource related to this: helikit. Maybe you could dig in this and search for what your trying to find. Hope you find your answer!

I tried using it but it seemed like their gyros relied on mouse input rather than keyboard input. I hope someone can help me out with this since it is essential for my game.

if im pretty sure,i made a heli before and the thing is that i used a body gyro to tilt my heli and i rotated the body gyro in the x axis,you can probably see my heli code in my #help-and-feedback:scripting-support topics in my acc

I saw that and tried to use it. The problem is that it prevents my helicopter from turning for some reason!

If I were to be making a helicopter I would use a AlignOrientation instance to control its rotational property(s).

You would then have to do some math to get the helicopter to tilt in the direction you want but this instance is good if you helicopter is physics based.

If you are moving your helicopter using CFrame I you can just add CFrame.Angles(X, Y, Z) to your existing CFrame constructors.

I am moving my helicopter using BodyVelocity! How would I implement AlignOrientation?