Help Editing PlayerModule

I’m editing the PlayerModule to make the transition between shiftlock smooth. The problem is that the player’s direction angle is skewed when looking up or down or in first person.

I think the problem is the lookVector of the CFrame get’s changed by the spring but I cannot find where they update the player’s rotation position to apply that fix.

CODE THAT INFLUENCES CAMERA CFRAME:

local currentCamera = game.Workspace.CurrentCamera :: Camera
currentCamera.CFrame = newCameraCFrame * CFrame.new(self.camLockSpring.Position)
currentCamera.Focus = newCameraFocus