How should I handle gun raycasts?

does anyone know a better way than this? I feel like it’s a bit exploitable : /