I need help with For Loop With Delay when used with wave enemies

@pezzott1
This certainly does happen yes. Whenever I kill the first enemy upon spawning, the wave countdown to the next wave will start, but the enemies from the first wave will still be spawning in. I thought this will be soemthing not to worry about too much because the spawn delay can be changed to something like 0.2 seconds and the enemies will spawn around a corner at 4 pre-set random locations so it will be kind of impossible to kill the first one without having others spawn in.

But this might be where the flaw is anyways.

Is there a chance that you might know how to fix something like this? Thanks for the help so far!

Edit: Maybe it could work if you only give a tag or something to one zombie in the arena, and if he is killed, it will check if there is any other zombies in the arena. If true, it will pass the tag over to that zombie, but if false, it wil do a Wave Check. In theory it sounds like it could work but im not sure how to implement something like this.