How would I replicate Camera tilting from "Combat Warriors"?

In this game, the camera continually tilts on the Z- Axis and smoothly transitions back to the camera’s original angle.

I was able to successfully replicate the camera rotating on the z-axis, but when the player stops moving, it quickly snaps back to the camera’s original angle due to Camera.CFrames angles not being kept after the tween is done if the CameraType is set to Custom.

Anyone know any ways to recreate this camera effect?