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

Not Sure What This Teleportation Error Is?

Asked by 6 years ago
Edited 6 years ago

After running this block of code:

local PLAYERS = {}
if PLR1VALUE.Value ~= nil and PLR2VALUE.Value ~= nil then
    table.insert(PLAYERS, PLR1VALUE.Value)
    table.insert(PLAYERS, PLR2VALUE.Value)
end
if PLR1VALUE.Value ~= nil and PLR2VALUE.Value ~= nil then
    local TS = game:GetService("TeleportService")
    local code = TS:ReserveServer(1431950426)
    print("Success")
    TS:TeleportToPrivateServer(game.PlaceId,code,PLAYERS)
end

I get: Teleport exception: HTTP 400 (HTTP/1.1 400 Bad Request)

PLR1VALUE and PLR2VALUE are objectValues with the player inside of them, this error breaks my game and so far after searching google I still can't find an answer- the places are in the same game and they're both active, HTTP services are enabled- not sure what's causing this error.

note: "Success" does not print.

1 answer

Log in to vote
0
Answered by 6 years ago

Well, there are two possiblities for this:

1.) The game you want to teleport to is not active. You need to make this game active.

If that doesn't work, then try option 2:

Turn on HTTPS Requests

I think it's the first one, though.

If this helped, please accept the answer so we both get reputation

Ad

Answer this question