Using :TeleportAsync() to teleport to a place kicks me with error code 773.
I’ve tried countless other solutions and nothing has worked. Is anybody able to help?
Quick info:
All places inside my game are public, without any restrictions.
My main game is also public, without any joining restrictions.
My game is under a group.
I am not testing the game inside studio.
Code:
tpEvent.OnServerEvent:Connect(function(player,mode)
local find = table.find(list,player)
if not find then
player:Kick("Something went wrong.")
warn("Player not found in list.")
return
end
local findMode = places:FindFirstChild(mode)
if not findMode then
player:Kick("Something went wrong.")
warn("Place not found.")
return
end
local value = findMode.Value
print("TELEPORTING TO ",mode,value)
local success, result = pcall(services.tps.TeleportAsync, value,{player})
if not success then
print("Teleport attempt 2")
services.tps:Teleport(value,player)
end
end)