So my place is a universe with multiple places, I need to make an option to follow friends into other places within that universe.
I am using TeleportService’s TeleportToPlaceInstance and GetPlayerPlaceInstanceAsync to do this. This is what I have currently, but for some reason, it returns an empty error.
(keep in mind I am testing the game private, using the new Developer’s only can-play test feature)
local success, errorMsg, placeId, instanceId = TS:GetPlayerPlaceInstanceAsync(FollowInfo["VisitorId"])
if success then
loadingGui()
game:GetService("TeleportService"):TeleportToPlaceInstance(placeId,instanceId,plr,nil,{},plr.PlayerGui.LoadingScreen)
else
print("Friend Follow Error:", errorMsg)
end
FollowInfo[“VisitorId”] is the friend’s UserId