How to make muzzle flashes for an automatic rifle


I’m making an FPS game. I have made a shoot function aswell as a shooting animation. Only how to do muzzle flashes for my gun? The shoot anim is around 0.07 seconds. I’ve tried to merge the muzzle flash with the animation, but sometimes the muzzle flash wouldn’t disapear. Any tips on how to do it?

I would make a seperate script to spawn in a muzzle flash everytime you hit the shoot button. I did that in my monkey assault game (which was lost when my pc broke…)
also you can delete the flash after a seccond in my way or urs and make it continuously spawn.