thank you! I haven't really used game maker, but the idea is make the hero and gun as separate objects. Pin/link the gun to the hero, and make the gun rotate towards the mouse/cursor 😃
Hope that helps points you in the right direction!