Maps are stored in serverstorage and are cloned into the workspace. When they are done being used, the clone is destroyed.
A round system is usually an infinite loop with different segments.
First is the intermission, which is usually set up as a repeat until loop which waits until there are a good number of players, followed by a for loop counting down. If there are still enough players, the round starts when the for loop finishes.
After the intermission, the map is spawned. Depending on if you have different gamemodes, you can randomize the map and the gamemode before spawning it. This section usually dictates where players spawn, what they spawn with, and other miscellaneous things.
Once the map is generated, you have the gameplay. Usually you'd want to dictate how long the round will last at it's maximum here, and what rules would end the round before the timer depletes. This timer usually takes the form of a repeat until loop. |