Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I get and use the teleport code of a private server? (Solved)

Asked by 5 years ago
Edited 5 years ago
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)

2 answers

Log in to vote
0
Answered by 5 years ago

are you trying to do it like in notoriety by brick_man?

Ad
Log in to vote
-1
Answered by 5 years ago

It's just not possible

0
I figured it out, you just gotta put the reserve server code before the player code, so it is possible. PikminLegion 38 — 5y

Answer this question