How to make holstered gun jiggle through spring module?

I want to make that holstered gun that has WELD jiggle with player’s movements and make it similar to rope physics.

I’ve tried a lot of different ways to make it but most people are prefer spring module.

But the problem that i have no clue what to start with. I’ll be very grateful if you could help me.

Solved that by changing spring module to more simple.

Could you show me what the code looks like by any chance. i’m currently trying to replicate this effect for my game but have no idea what to do with the spring settings or how to set it up