Adding bobbing to my viewmodel

Hello :smiley:
I am making an fps!
I need help because I can’t figure out how to add bobbing!
Script:

		local camframe = game:GetService("Workspace").CurrentCamera.CFrame 
		script.Parent.FakeCamera.CFrame = camframe + camframe.LookVector * -0 + camframe.UpVector * -0 + camframe.RightVector * -0
		local rotation = workspace.CurrentCamera.CFrame:toObjectSpace(lastCameraCF) 
		local x,y,z = rotation:ToOrientation() 
		swayOffset = swayOffset:Lerp(CFrame.Angles(math.sin(x)*mult,math.sin(y)*mult,0), 0.1)  
		script.Parent.FakeCamera.CFrame = script.Parent.FakeCamera.CFrame * swayOffset 
		lastCameraCF = workspace.CurrentCamera.CFrame