Help with specific type of viewmodel sway

Hello, i am looking to make a really specific type of viewmodel sway. One like in deadlines, heres what i have right now:


I am looking to achieve something like this:

but i dont know where to start, can someone help?

Heres my current code to set viewmodel CF

Viewmodel.PrimaryPart.CFrame = workspace.CurrentCamera.CFrame:ToWorldSpace(CFrame.new(UpdatedSwaySpring.X, UpdatedSwaySpring.Y, 0) * CFrame.new(UpdatedBobbleSpring.Y, UpdatedBobbleSpring.X, 0) * AimCFrame)

(I am using this spring module from @bhristt:
Physics Based Spring Module V2.0)

Honestly, the spring module feels lot more ‘springy’ than what you are looking to achieve,
while the sway is rigid on there.

You may clamp the rotation change?