Teleport Script Help

local url = "https://games.roblox.com/v1/games/"..PlaceID.."/servers/Public?sortOrder=Asc&limit=100"

I’m using this API to check servers and teleport a player to them, however, is there a way to make it search for a medium sized server without looking for too long? With this script, it just puts them in a 1/12 or 2/12 server. I’d rather have a medium sized server like 5-8/12. Thanks.

1 Like

Bump, still need help if possible :slight_smile:

1 Like

If I have the right idea of what you’re trying to accomplish;

You could use MessagingService, as long as the game(s) are located within each other, as places.

  1. Servers reach out upon PlayerAdded to main game.
  2. Main Server finds a server with Data (of which you’d have to send) within the DataModel for the current player count.
  3. Grabs that Server Id
  4. Teleport Player to the Server Id.

If the game is located somewhere else, that would be http service.

1 Like