GetPlayerInstanceAsync Keeps Failing

local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(player)
	local teleSuccess, teleErrorMessage, placeId, jobId
	local success, errorMessage = pcall(function()
		teleSuccess, teleErrorMessage, placeId, jobId = TeleportService:GetPlayerPlaceInstanceAsync(player.UserId)
	end)
	print(success, errorMessage, jobId)
end)

How come this code keeps failing? I keep getting
false HTTP 403 (Forbidden) nil

In the output. I have HTTP services enabled.

2 Likes

I am pretty sure the issue is that you can’t use TeleportService in studio, you have to try it in the actual game.

2 Likes

If this is in studio then, @7z99 is absolutely correct, however if this is in game you might be trying to teleport to a third-party place without it being enabled.

1 Like