I keep getting this error: Teleport exception: HTTP 400 (HTTP/1.1 400 Bad Request)

I'm currently running this serverside

local teleportService = game:GetService("TeleportService")
local event = game.ReplicatedFirst.TeleportAway
function event.OnServerInvoke(player)
	teleportService:Teleport(570934982, player)
	return true
end

I tried searching but found no clue what could be causing this error

2 comments

0

The first thing to come to mind when I see this sort of error is that the PlaceId may be incorrect. If it is indeed correct, though, maybe you could try using TeleportService in a local script instead and see if that changes anything.

0

I checked the place id and the game is currently closed to visitors,