Does anyone know how would I go about teleporting a group using TeleportService:TeleportPartyAsync()
I have tried setting it up like this:
local reserved_ID = teleport_service:ReserveServer(12851837983)
local teleport_data = {
placeId = 12851837983,
jobId = reserved_ID
}
teleport_options:SetTeleportData(teleport_data)
teleport_service:TeleportPartyAsync(12851837983, players_queued, teleport_options)
And this:
local reserved_ID = teleport_service:ReserveServer(12851837983)
local teleport_data = {
placeId = 12851837983,
jobId = reserved_ID
}
teleport_options:SetTeleportData(teleport_data)
teleport_service:TeleportPartyAsync(12851837983, players_queued, teleport_data)
But neither of these options work. I’ve been trying to find out why and I haven’t found much coverage over TeleportPartyAsync.
- The error it’s throwing is “Unable to cast value to object”
And this is how I have the players organized:
local player_table = {}
table.insert(player_table, player1)
table.insert(player_table, player2)
Any help would be appreciated, thanks!