School project (563324)

So we got a project in school to create a game, and my group decided to make a “fighting” game where you play as a player and enemies will try to destroy you but there is a problem. It’s my first year as a “game programer” and that means i don’t have so much knowledge about scripting so the problem is that i don’t have a single clue how to make a “Spawner” i want to make so that enemies spawn every 5 sec and are capped at 10 maximum we got the ide from the game Electric man 2 and want a similar spawning as that game so if someone could help me out that would be great! =)

Link to the game if you haven’t played it
http://www.electricman2.net/
I don’t own the game ^

Use a coroutine. Gotta love coroutines :3