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
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.