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

Http 400 when reserving servers?

Asked by 5 years ago
--config
local timez = 30
local minplayers = 1
local gameid = 970703729
--config end

local teleport = game:GetService("TeleportService")


function oof()
    local play = #game.Players:GetChildren()
    if script.Parent.players.Value >= minplayers then
        script.Parent.timer.Value = timez
        repeat
            wait(1)
            script.Parent.timer.Value = script.Parent.timer.Value - 1
        until script.Parent.timer.Value <= 0
        local reserve = teleport:ReserveServer(gameid) -- LINE 18, ERROR HTTP 400 HERE
        for i,v in pairs(game.Players:GetPlayers())do
            if v.roundin.Value == "Standard" then
                teleport:TeleportToPrivateServer(gameid,reserve,v)
            end
        end
    end
end


script.Parent.players.Changed:Connect(oof)

Been at this for an hour, i'm about to throw my computer out the window.

This script teleports players that are in a round to a reserved server in another game.

0
I was told on the discord it was a bug. RunKittenzRComin 170 — 5y
0
Are you testing it on Roblox Studio? If you are, that is the reason why it wont work. bryancololee 0 — 5y

Answer this question