Hi.
So, I'm trying to teleport to places within the same universe that have been created with the function CreatePlaceAsync, a function of AssetService.
But, when I try to do that, it returns this error:
Teleport exception: HTTP 400 (HTTP/1.1 400 Bad Request)
What does this mean and how can I resolve it?
Here's my code, if you need it:
local tpService = game:GetService("TeleportService")
script.Parent.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
tpService:TeleportToSpawnByName(game:GetService("DataStoreService"):GetGlobalDataStore():GetAsync("placePlayerPlap-"..player.UserId), "MainSpawnPoint")
end
end)
