Your raycast may be hitting a collider attached to the player, be sure that it is ignoring all the player and gun layers!
That is my 2 cents, good luck!
↧