I’m using teleport service in my game and while trying to test Roblox keeps putting us in different servers. Why? Am I doing something wrong? The preferred player count is 35 while the max player count is 40 so it shouldn’t be putting my friend into a different server.
If you just use the basic Teleport method, this is to be expected because matchmaking will try to optimize the experience for each player. This means you get put in servers with players that have similar network delay as yourself, or players who are in a similar location as you are, or you get put in the same server as friends if any are available.
You should use different teleport API if you want to have players end up in the same server.
Is there a way to disable this? I just want everyone to be put into the exact same server for testing. I can’t use party teleports as testers would join at different times as it is not a matchmaking or party game.
I looked at “TeleportToPlaceInstance”, but is there any way to get all of the place instances in a game and then teleport the player to one that already exists?
It is just the lobby place and the game place, when players join they can do stuff in the menu and when they are done they can start playing and get teleported to the actual game.
I just tried doing this which makes anyone who joined after me follow me into my server, but it doesn’t work at all and they still end up in different servers.
--If player is me then teleport to the game
if player.UserId == 23633437 then
teleportService:Teleport(blablablaplaceid, player)
else --If player is not me
local success, errorMsg, placeId, instanceId = teleportService:GetPlayerPlaceInstanceAsync(23633437) --Get the game I am in
if success then --If I am playing the game
teleportService:TeleportToPlaceInstance(placeId, instanceId, player) --Teleport player to me
else
teleportService:Teleport(blablablaplaceid, player) --If I am not playing the game teleport them straight to it
end
end
If you specifically want players to end up in the same test server, then you should model that explicitly by creating a reserved server and having an option for players to teleport to that specific test server.
Do you know why the code above doesn’t work? I’d like to allow players to join their friends in the future, but I either did something wrong or it doesn’t work at all, or Roblox optimises the friend matchmaking as well which would be stupid.