How do I rotate the gun to face my direction when I aim?

First off you need to setup the correct trace method for firing shots that hit center screen (crosshairs). Typically you don’t rotate the weapon for that.

Check my reply here for code.

Secondly you need to setup your weapon(s) to properly sit in hand. Here’s 2 vids on that including left hand IK code etc.

Positioning:

FABRIK left hand IK: