Make rolling more smooth

So I’m making a roll script and it’s working fine, however when the player is finished rolling they snap back to the mouse lock direction. Here is an example:

The way the roll works is the humanoid’s ‘auto rotate’ property is set to false, then I just set the humanoid root parts c-frame in the direction that the player is rolling. Afterwards is turn back on the auto rotate property. If you can think of any solutions please let me know! Thanks for reading!