How to make arms and torso follow your mouse while holding a gun

I am trying to make the player’s arms and torso follow the mouse direction when you are holding a gun. This has been bothering me for some time now.

I am also trying to make it as smooth as possible and make all players see it. If you know how to do this, please contact me.

There are a lot of posts about this topic already.
I’d suggest using the search button up top with “aim arms and torso to mouse”

I have been reading those forum posts for a long time, nothing that fits my needs. They are either client sided or have some other issue.