Yeah, I thought the same as I was releasing the game the invulnerability timer was mostly only a fix that the bullets won't hit again but I could have solved it by just despawning it whenever it hits the player making it much harder when he has the shotgun as the active weapon. There is also a bug that is when the enemy moves too far to the left so that he falls down. But thanks for the feedback !