How do I make so when players are tagged game ends

How do I make it when the seeker(team 1) tags all of the hiders (team 2) and the game ends. do i just use spectator for that?

After team 2 gets tagged, switch them to spectators. Then use a end

Do I just use team switcher for that?