Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to use reserve server on other games?

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

2 comments

0

ABORT, ABORT! IT WORKS!

0

IT'S JUST THE COUNTDOWN BEING TOO FAST!

1 answer

✓ Accepted answer

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

1 comment

0

I know, Look at my comment. I already did it before this was posted. But okay. I'll accept.

This discussion is preserved as it was. New answers, comments, and votes are closed.