Round system for sword fighting game

I am a programmer for a sword fight game, and I want to make a game, that only the people who want to join are in, but the game lasts for 3 rounds. I have a repeat until at the end of the game, checking if the player table is empty, but would the best way to do it just to copy and paste the repeat and the other necessary stuff for the round like teleportation, or is there a more efficient way to do this?

1 Like

Instead of copy-pasting, use a for loop that repeats the game logic three times, teleporting players at the start of each iteration.

2 Likes