Making Wave System Help

I’m really bad at describing what i want to do;

so i am making a wave system that checks if enemies more then limit;
if more then it will wait until amount of enemies will be lower then limit
then if lower it will spawn a new enemies

heres my code


this code needs to be changed

1 Like

That repeat loop might be stopping the rest of your code from running.
Edit: I recommend you use a coroutine

1 Like