Spawn Emitter attached

so i seen a lot of tutorials used spawn emitter at location instead of spawn emitter attached but i think this function is betters suited for muzzle flash but how to used it
and how to replace my existing muzzle flash

here is my muzzle flash that i make from a tutorial