How to make a in-game server selector?

How would I go about creating a server selector like in the image below (it shows players in the server, server name, and region)

There are two ways to do this:

  1. MessagingService to communicate between servers.
  2. Http requests to get the servers under the experience

Ive used messaging service before to make 1v1 system but how would I use it for this?

You could create a folder and create a new instance in it for every unique server from listening to the messages then using it later on.

is there like a function for that(to get all the reserved servers)

1 Like

Anyone know of a opensource that has this working?

Thanks!

The code:

local isReserved = game.PrivateServerId ~= "" and game.PrivateServerOwnerId == 0

checks if the server is a reserved server.

could this also work

HowToRoblox has a YouTube tutorial on this using MessagingService.

Quick question how would I create a reserved server

There is a documentation on this very specific topic. By using TeleportService:TeleportToPrivateServer() on a player, Roblox will return the access code to the server so you can teleport other players to the same server.