I’m trying to make a FPS game, but i have this weird bug that my muzzle flash animation plays when I start or switch the weapon. I used this tutorial:
And put muzzle.Play(); in the OnGunShot method. And btw the weapon switching scripts can be found from the same channel.