Gun bobble feedback

Hello!

I’ve been working on this framework for a while now, the thing I’m mostly stuck is bobble patterns.
I’m not really satisfied with the current bobbing pattern. The spring is fine, I’m looking for a better bobbing ‘pattern’, if that make sense.

What I currently have:

https://gyazo.com/30041b0acd9b5d23e7c6ab9d30db9105

Code:

	local velocity = player.Character.HumanoidRootPart.Velocity
	local movementSway = Vector3.new(math.cos(currentTime * 10) * 0.6, math.abs(math.sin(currentTime * 10) * 0.6), 0)
	self.SPRINGS.SWAY:shove((movementSway / 25) * velocity.Magnitude)
	local sway = self.SPRINGS.SWAY:update(deltaTime)
	viewmodel.HumanoidRootPart.CFrame = viewmodel.HumanoidRootPart.CFrame:ToWorldSpace(CFrame.new(sway.x / 7 * multiplyWalkBobble, sway.y / 9 * multiplyWalkBobble, 0))

If anyone can give feedback or ways to improve this, I would very much appreciate it. Thanks!

Maybe try like a camera shaking movement? Like the ones you’ve seen in those YT videos.

I already tried doing that but since the value goes to negative on the right side bounce (if that make sense), I can’t do that because the camera rotation will do a roll. Hopefully that makes sense

image

Try some lissajous equatiuons