How to display game servers

How would I go about making a server list for the main game?
Example; we have the game with the server select (main menu) then when they click on one of the servers they get teleported into the main game.

  1. What would I have to encode so to display certain information from a server? Like the map or number of players for example?
  2. How would I remove servers from the server list once they shut down? Adding onto this, how would I update the list of servers in general?
2 Likes

You can use the roblox server API to get data from your game’s servers
I think you can find something useful there.
I advise you to read the official documentation of the roblox server API here - Swagger UI

1 Like

I can’t seem to understand it by the “Swagger UI” thing nor does that really answer any of my questions.

2 Likes

Oh ok
I tried to help, but I still advise you to study this documentation as you may need it in the future, for example, to display information about the number of players in your game, etc.
Good luck

this is sort of overcomplicated, messaging service exists for a reason, and is universe wide

no need to grab server info when you can just comminucate it between servers too

also, you would need a proxy to access that API

its basically the really low level way your browser communicates with the server
just use messaging service tho

(here)

It isn’t that bad, there is https://games.roblox.com/v1/games/{placeId}/servers/{serverType} which returns the games public servers. For the proxy, that has already been solved, https://roproxy.com works exactly like roblox.com just replace roblox with roproxy.

insecure, inefficient, and if you ever want more info than just the base server, you need messaging service

actually not that insecure nor inefficient and its pretty fast if you’re just looking to get the servers

the most information you can get from game API is the server itself and the player count
why would you use that when u can just code some simple messaging service and get players, server names, info about the server itself, and it takes like less than a second + doesnt need a proxy

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.