I have been searching for 15 Minutes and didn’t find anything that tells me how I would get “GUID representing the instance they were teleported to (also known as the JobId of the DataModel)” from using TeleportPartyAsync()
The Wiki example just shows you how to Teleport Players but not how to get the returned String
local Players = game:GetService("Players")
local TeleportService = game:GetService("TeleportService")
local placeId = 1818
TeleportService:TeleportPartyAsync(placeId, Players:GetPlayers())
So would I have to do something like
local function TeleportP()
return TeleportService:TeleportPartyAsync(placeId, Players:GetPlayers())
end
local JobId = TeleportP()
or
local JobId = TeleportService:TeleportPartyAsync(placeId, Players:GetPlayers())
or
would I have to use Pcall() like in this example
local success, errorMsg, placeId, instanceId = teleportService:GetPlayerPlaceInstanceAsync(targetUserId) -- **This is just an Example I know it's not the same function**