Torso-Based View Bobbing

I’m working on a weapon system, and would like the camera to move based on the torso’s rotation. I found an example of the effect I want in this game:

Here is my current code:

	local char = game.Players.LocalPlayer.Character
	local ut = char.UpperTorso.CFrame
	local ut1 = ut*,0,-.2)

	char.Humanoid.CameraOffset = (ut1.Position-char.LowerTorso.Position) -, 1, -0.2)

This mostly gives the desired effect, but there’s constantly an offset. Even when no animation is playing, the CameraOffset is slightly off even at idle (looking South, it’s -0.197, -0.001, 0.235), making the camera look wonky.

How would I go about fixing this?