Thank you! :)
I agree that the spawning needs work lol. As a quick fix because I was running out of time i just gave the player immunity for two seconds at the start of each wave so you wouldn't take unfair damage. ^^