How to lean while using Jetpack?

Hello, I’m currently working on a little project but my brain has somewhat left the house… I have a Jetpack and can already fly but now I would like to add leaning, Basicly when I am flying forward I would like my player to rotate forward and again while moving backwards I would like to lean backwards but also rotate back to normal rotation once I have stopped moving the main issue I’m having is it either spins contiunously or the rotation snaps instantly instead of gradually. I’f anybody knows of a tutorial for this or maybe has some screen shots to show how its done I’d be greatful.

You might find this of interest to you…