I tried making my own but it did not work, I was wondering if anyone could help? Here's what I had:

function FollowFriend(player, targetUserId)
    local teleportService = game:GetService("TeleportService")
	local success, errorMsg, placeId, instanceId = teleportService:GetPlayerPlaceInstanceAsync(targetUserId)
    if success then
        teleportService:TeleportToPlaceInstance(placeId, instanceId, player)
    else
        print("Teleport error:", errorMsg)
    end
end

2 comments

0

You have to call the function

0

Duh