I’m teleporting a player and trying to get access to TeleportAsyncResult.PrivateServerId, which prints nil. Printing TeleportAsyncResult.ReservedServerAccessCode works fine. The player gets teleported properly. The docs say I should be able to access that when teleporting to a reserved server.
local Options = Instance.new("TeleportOptions")
Options.ReservedServerAccessCode = Key
local Return = game:GetService("TeleportService"):TeleportAsync(PlaceId, {Player}, Options)
print(Return.ReservedServerAccessCode) -- prints the correct code
print(Return.PrivateServerId) -- prints nil
This works for my usecase, thanks!
But it seems like you can’t get the PrivateServerId when you use a set AccessCode.
I have opened a bug report for that.