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:

game:GetService("RunService").RenderStepped:Connect(function()
	local char = game.Players.LocalPlayer.Character
	local ut = char.UpperTorso.CFrame
	local ut1 = ut*CFrame.new(0,0,-.2)

	char.Humanoid.CameraOffset = (ut1.Position-char.LowerTorso.Position) - Vector3.new(0, 1, -0.2)
end)

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?