Minigames round help

I looked through the flood gamemode and I don’t see how it loops through rounds. I’m trying to make a minigame gamemode, how can I make a loop like that?
**Edit: **And how can I set whether or not a player can noclip or not?