--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.