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

How to use reserve server on other games?

Asked by 5 years ago

I've tried to make a script that teleport groups of people to a different game, Doesn't work.

01for i = 1, 5 do -- Countdown
02    wait(0.5)
03    print(i)
04end
05 
06local bruh = game:GetService("TeleportService"):ReserveServer(3271046192)
07 
08for i, Players in pairs(game.Players:GetPlayers()) do
09    local Success, Fail = pcall(function()
10        game:GetService("TeleportService"):TeleportToPrivateServer(3271046192, bruh, {Players})
11    end)
12 
13    if Success then
14        print("Worked")
15    end
16    if Fail then
17        print("Dang")
18    end
19end
0
ABORT, ABORT! IT WORKS! FixRobloxz 61 — 5y
0
IT'S JUST THE COUNTDOWN BEING TOO FAST! FixRobloxz 61 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Try making the Countdown higher:

01for i = 1, 300 do -- Countdown
02    wait(0.5)
03    print(i)
04end
05 
06local bruh = game:GetService("TeleportService"):ReserveServer(3271046192)
07 
08for i, Players in pairs(game.Players:GetPlayers()) do
09    local Success, Fail = pcall(function()
10        game:GetService("TeleportService"):TeleportToPrivateServer(3271046192, bruh, {Players})
11    end)
12 
13    if Success then
14        print("Worked")
15    end
16    if Fail then
17        print("Dang")
18    end
19end
0
I know, Look at my comment. I already did it before this was posted. But okay. I'll accept. FixRobloxz 61 — 5y
Ad

Answer this question