How do you find the ID for a server instance in a game?

Currently trying to unscramble a script one of my friends made. Originally, it sent mod calls to Discord, and then provided the ID for the server instance, allowing me to join that said game using a script.

The IDS look something like this; 2294715480:d8254b20-bff6-4426-92f5-1cf499b6f7f2

We have since retired the script’s functionality in the game, and are now having issues with attempting to join certain games. Is there any way to find these types of ID’s from site, or is there any way to join a certain player’s game with Kohl’s?

2 Likes

No idea about Kohl’s admin. What you’re seeing right there is probably the game.JobId of that specific server. You can probably create a script to join a game like that using TeleportService’s TeleportToPlaceInstance. You might be able to take apart the external application link (you can find it in the Network tab on Inspect Element) that launches a game but I’m not sure considering you can’t use the same URL twice.

3 Likes

The IDS “2294715480:d8254b20-bff6-4426-92f5-1cf499b6f7f2” is composed of two numbers. The first, “2294715480” is the game.PlaceId and the “d8254b20-bff6-4426-92f5-1cf499b6f7f2” is either the game.JobId or the game.PrivateServerId. I don’t know of a way to tell the difference, but if it is a JobId then only TeleportService:TeleportToPlaceInstance() works, otherwise only TeleportService:TeleportToPrivateServer() works. If one doesn’t work, then try the other.

You may want to look at these endpoints to get the running JobID or PrivateServerId:
https://games.roblox.com/docs

In particular:
https://games.roblox.com/v1/games/{placeId}/servers/{serverType}

Which when I started up a server for my own game and put its id in I got this:

{
  "previousPageCursor": null,
  "nextPageCursor": null,
  "data": [
    {
      "id": "75dd3834-120d-4c00-9442-e8e12fe7496b", --This is what you are looking for
      "maxPlayers": 50,
      "playing": 1,
      "fps": 40.733643,
      "ping": 43
    }
  ]
}
9 Likes