How to make objects have wiggle/sway physics


this is what i have right now
i tried using a spring script made for gun viewmodels and modifying it for this
it has some issues like it lags behind
is there another way to do this because my script is janky
maybe with roblox attatchments (maybe ropes etc) or script

1 Like

I don’t understand what you are trying to achieve. If you just want the gun model to stay on the character’s back, use WeldConstraints.

sorry,
im trying to achieve wiggle physics, so when he moves the gun sways realistically on his back

I think a realistic approach would be connecting the gun to whatever points it connects to on the character and leaving it unanchored. That way, the gun rotates with the player and physically reacts to changes while being constrained to the player’s back.

Connecting the gun to the player can be done with a constraint that allows motion such as a BallSocketConstraint. Do not weld the gun to the player, as this will prevent physics from kicking in.

1 Like