Make an invisible box object that follow your mouse around, and have magiccam point at that instead
every tick -> set position "box" to mouse.x, mouse.y
Also, you want to put your sprite, and gun sprite in a container together, so that when one is destroyed, everything else in the same container is destroyed.