Error when reserve server?

Hello, I have a problem with reserve server

Error = HTTP 403 (Forbidden)

I have enabled Https request and my game is in a group

local CountdownServer = game.ReplicatedStorage.Parties.NormalServer.Countdown
local ServerStatus = game.ReplicatedStorage.Parties.NormalServer.Stats

local TeleportService = game:GetService("TeleportService")

--function ChangeServer()
	--code = TS:ReserveServer(5070728964)
--end

while true do
	if game.ReplicatedStorage.Parties.NormalServer.PlayersNumber.Value >= 1 then
		local Countdown = 30
		ServerStatus.Value = "Enable"
		repeat
			Countdown = Countdown - 1
			CountdownServer.Value = Countdown
			wait(1)
		until Countdown == 0
		ServerStatus.Value = "Teleporting"
		Server = TeleportService:ReserveServer(5070728964) -- ERROR HERE
		--ChangeServer()
		for i, player in ipairs(game.Players:GetChildren()) do
			if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
    			if player.InNormalParty.Value == true then
       				TeleportService:TeleportToPrivateServer(5070728964, Server, player)
					print("Teleporint "..player.Name)
   				end
			end
		end
	end
	wait(1)
end

Pls I need help

1 Like

It looks like HTTP isn’t enabled, make sure you go into your game settings and check HTTP Service.

1 Like

Is enabled and published, Idk why doesn’t work

So what can I do to reserve a server?

Ignore the 403 error, it’s not helpful in telling you what’s going on.

Firstly, is the server you’re trying to reserve in the same Game (“universe”) ?

If not, then it might be down to TeleportService being unreliable as per usual - it goes down so frequently (for days at a time) it’s a bad idea to rely on it at all except for tech demos.

1 Like

Universe = game?
If is that, yes, the places are in the same game (sorry for my english(i am spanish))

Yeah, universe is the old term for game in the Roblox vocabulary. I think it’s a lot better, so I use it.
A game has lots of places inside of it. It’s far less intuitive than the universe/world mental picture.

If it’s in the same universe then I suspect it’s just TeleportService being funky. Try again in a day or two.

3 Likes

@EllipticCurve_DHE, it still broke, idk what i need to do to fix it

I fixed it, i added some lines of codes and boom, it worked, here is the lines

local CountdownServer = game.ReplicatedStorage.Parties.NormalServer.Countdown
local ServerStatus = game.ReplicatedStorage.Parties.NormalServer.Stats

local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
local DSS = game:GetService("DataStoreService")
local DS = DSS:GetGlobalDataStore()

--function ChangeServer()
	--code = TS:ReserveServer(5070728964)
--end

while true do
	if game.ReplicatedStorage.Parties.NormalServer.PlayersNumber.Value >= 1 then
		local Countdown = 30
		ServerStatus.Value = "Enable"
		repeat
			Countdown = Countdown - 1
			CountdownServer.Value = Countdown
			wait(1)
		until Countdown == 0
		ServerStatus.Value = "Teleporting"
		Server = TeleportService:ReserveServer(5070728964)
		DS:SetAsync("ReservedServer",Server)
		--ChangeServer()
		for i, player in ipairs(game.Players:GetChildren()) do
			if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
    			if player.InNormalParty.Value == true then
       				TeleportService:TeleportToPrivateServer(5070728964, Server, {player})
					print("Teleporint "..player.Name)
   				end
			end
		end
	end
	wait(1)
end