I am making a “friend lookup”, and I have a feature that teleports the player to the player’s friend’s server. I have tried using GetPlayerPlaceInstanceAsync and Teleport, and none of them worked. I am currently using TeleportToPlaceInstance(), and it’s giving me a rough time. I HAVE 3rd PARTY TP’s ON, HTTP REQS ON, API SERVICES ON, AND I AM NOT DOING THIS IN STUDIO
Anyways, here is the portion of the script:
join_button.Activated:Connect(function()
local not_success, not_err = pcall(function()
game["Teleport Service"]:TeleportToPlaceInstance(friend.PlaceId, game_id, plr)
end)
if not_success then
print('Success!')
else
warn('Error occured!', not_err)
end
end)
Ignore how I named the variables.
Help is appreciated.