Aimpart (Gun System) Going crazy

I’m trying to create my first gun system. It’s been going decent but the aiming (iron sights) has been going crazy whenever I try to change something.
robloxapp-20240810-1456116.wmv (1.0 MB)
I’m using lerping for this:

if isAiming and framework.viewmodel ~= nil then
		local offset = framework.viewmodel.AimPart.CFrame:ToObjectSpace(framework.viewmodel.PrimaryPart.CFrame)
		aimCF = aimCF:Lerp(offset, .1)
	else
		local offset = CFrame.new()
		aimCF = aimCF:Lerp(offset, .2)
	end

Dunno what else I need. If you need more info please just ask.

i see you are using xera’s tutorial lol, have you tried asking in his server?