Me and my friend have been trying to fix this bug for a while, yet it's still broken. After there is 1 player remaining, the game doesn't clean up and take everyone back to the lobby, thus not resetting the rounds. We just cannot figure out what the issue is. Please help!

Here is the link to a .txt of the script: SwordFight Script (Google Drive)