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.

for i = 1, 5 do -- Countdown
    wait(0.5)
    print(i)
end

local bruh = game:GetService("TeleportService"):ReserveServer(3271046192)

for i, Players in pairs(game.Players:GetPlayers()) do
    local Success, Fail = pcall(function()
        game:GetService("TeleportService"):TeleportToPrivateServer(3271046192, bruh, {Players})
    end)

    if Success then
        print("Worked")
    end
    if Fail then
        print("Dang")
    end
end
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:

for i = 1, 300 do -- Countdown
    wait(0.5)
    print(i)
end

local bruh = game:GetService("TeleportService"):ReserveServer(3271046192)

for i, Players in pairs(game.Players:GetPlayers()) do
    local Success, Fail = pcall(function()
        game:GetService("TeleportService"):TeleportToPrivateServer(3271046192, bruh, {Players})
    end)

    if Success then
        print("Worked")
    end
    if Fail then
        print("Dang")
    end
end
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