How to change CFrame to Rotation?

I have this recoil script:

game.TweenService:Create(workspace.CurrentCamera,TweenInfo.new(0.2,Enum.EasingStyle.Back,Enum.EasingDirection.Out),{CFrame = workspace.CurrentCamera.CFrame * CFrame.Angles(math.rad(20),0,0)}):Play()

How could I make this so the camera position is not affected but only make the camera rotation move upwards when the gun is fired?

Edit: When the gun is fired, the camera locks position until the wait(.2) is up

Unfortunately it’s not that easy, since you need to incorporate these modifications with other systems that are actively controlling the camera (attached to character and player controlled).

I’d suggest looking for a tutorial, or investigating the default camera control yourself. You’ll essentially want to apply an additional cframe modification to the new camera cframe before it is set in the camera control scripts.