HTTP 400 bad request teleport service

  1. What do you want to achieve? Keep it simple and clear!
    I’m currently trying to achieve a teleport system.

  2. What is the issue? Include screenshots / videos if possible!
    My issue is that when I try to teleport my players, I get a error saying ‘HTTP 400 Bad Request’ On line 101, which is the reserve server line.

	local dragPlayer = {}
	local Children = server.Players:GetChildren()
	for i, child in ipairs(Children) do
		if child:IsA("StringValue") then
			local realPlayer = game.Players:FindFirstChild(child.Value)
			table.insert(dragPlayer, realPlayer)
		end
	end
	print(unpack(dragPlayer))
	local TeleportService = game:GetService"TeleportService"
	local reserve = TeleportService:ReserveServer(6560528613) -- Where it shows the error. This is the place ID
	TeleportService:TeleportToPrivateServer(6560528613, reserve, dragPlayer)

Now, I can’t tell if this has to do with problems in roblox server, or a error with my coding, so I need help to resolve this!

Where were you running this code? (Studio or the normal Roblox Player)

I would suggest you use Teleport Options & TeleportAsync rather then the old methods.

Question, Are you in the place you are trying to ReserveServer for? From my knowledge you have to be in the actual place to ReserveServer.

4 Likes

Im not really experienced with place teleporting, but do you have teleporting services on in the game settings?

I’ve realized I was trying to teleport the player from one game to a whole other game, which is what probably caused the error. My friend put the actual place in the same game and now it works.

2 Likes