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

ReserveServer and TeleportToPrivateServer not working?

Asked by 4 years ago

Hello. I have been wondering why this script does not work.

local TS = game:GetService("TeleportService")
local Players = game:GetService("Players")

wait(3)

local code = TS:ReserveServer(4062665801) 
local players = Players:GetPlayers() 

TS:TeleportToPrivateServer(4062665801,code,players)

Everytime I try to run it in the Roblox application, it produces this error:

HTTP 400(BadRequest)

And it points to line 6; please help me resolve this error. I have tried putting it in a pcall function, and the only thing it does when I do that is blocking the error from outputting in the server log, does not actually teleport the players.

Please help me.

0
Are you currently in studio? HoIyScript 51 — 4y
0
no RealTriangleFX 2 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

You should verify that your destination place 4062665801 has been added as a Place to the same Game you're trying to teleport from.

Normal usage is to only reserve servers for places in your game that are not the Start Place (which is usually the lobby or hub).

0
I wanted to teleport a group to an entire different game. Not a place in my game. RealTriangleFX 2 — 4y
0
You can use TeleportPartyAsync for that, but you can't make ReservedServers for another game, only your own places in the same game. EmilyBendsSpace 1025 — 4y
Ad

Answer this question