Recoil recovery forces camera to original alignment

This is a script I have that handles recoil and recoil recovery, however I am having the issue here of the recoil recovery forcing the player’s camera to the variable OriginalRecoilCam’s horizontal and Z alignment rather than having the recover be overlaid over the player’s current camera.

(For your information, upon pressing the fire key OriginalRecoilCam is set to the CFrame of the player’s camera at that moment)

I assume I did something wrong with the CFrame manipulation here. I tried camera.CFrame *= CFrame.Angles(lerp.LookVector.Y, 0, 0) alongside wrapping the first argument in math.rad() as math.rad(lerp.LookVector.Y), but this also did not help, it just continuously sends the player camera downwards.

Any help here would be appreciated!

Hello past me, I did manage to find a solution to this issue by using ToOrientation().

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.