In a game that I have been working on, I've created a script that would teleport a group of players to a new server all together where they can complete a group objective, but if players tried to join while a server was running, they would be dropped into the same server as the first group. The answer I found is to use a reserved server, but I don't know how to get the reserved server's id to teleport the players to it. I tried to incorporate what I saw of it into the script but I'm a little confused still on how it works. Here is the script that I'm trying to make teleport players to a reserved server, any help on the matter is very much appreciated.
local TeleportService = game:GetService("TeleportService")
local dest = TeleportService:ReserveServer(2302501914)
TeleportService:TeleportToPrivateServer(dest, party)
1 comment
I figured it out, you just gotta put the reserve server code before the player code, so it is possible.