How should I use my servers?

I want to make a game where you and all players in the lobby are teleported to a map to go through the game. I’m trying to decide how the servers should be split.

I have 2 options.

  1. Have a server for the lobby, and when the game starts, all players are teleported to another server which hosts the game. (Similar to Survivor, Eviction Notice and Among Us.)
  2. Have a server for both. When the game begins, the players in the lobby are teleported to the map. (Flood escape, Epic minigames and Super Bomb Survival.)

The pros for option 1:

  • Games will be able to be made on the fly, and multiple games can be run at once.
  • Certain events can occur in specific servers.
  • If a hacker is involved, only 1 server gets affected.

Pros for option 2:

  • Players who become friends through my game will be able to play together for a long time, without needing to find their servers after every game.
  • Adaptive difficulty, as well as a way to alter it, will make games more interesting.
  • Probably easier to program. (Needs confirmation)

After making this list, option 1 sounds a lot better, but I’d like to hear your inputs.

I don’t think I could give a direct answer to your question. However, I will share my method for a game I’m currently working on:

In my game, I want players to be able to host an online match; select the game mode; choose a map; specify other conditions, such as game speed and time limits; and then launch the game. For this, it would make more sense to use your option 2. However, I also want the main menu to be a server that can hold large amounts of players, such as in option 1. (It is meant to imitate Starcraft II, where lots of players can interact with each other before actually joining a game.) There would also be a matchmaking system, and I feel like it would be easier to compare matchmaking numbers of players if they’re all in the same server.

I have yet to put this in practice due to other things I need to make for the game, but my current solution is to create a hybrid of option 1 and 2, utilizing DataStores. When a player launches their game, the DataStoreService creates a table that stores the match info, as well as the players inside the match list. Once this table is created and saved, the players in this list are then teleported to a blank server. Here, the table is extracted from DataStores, and the map, victory conditions, etc. are all loaded based off of the information in the table.

I hope this helped! A hybrid probably isn’t what you’re looking for, but, like I said, I don’t know if I could place one option over the other.

That is a useless waste of datastore. Instead of using datastore, just send over the necessary game data using the ability to send data with TeleportService. More info is outlined in the article below:

It allows developers to send over all the data needed.

Oh. I had no idea you could send additional data with a player teleport. This is embarrassing…

Thank you for correcting me!