Can anyone help me fix this error, its on the TeleportPartyAsync line, the error is in the title. I’ve tried way too many fixes and searched around everywhere, but couldn’t get it to teleport the players in the same lobby.
local t = {}
local function onTeleportFired(player)
print("teleporting "..player.Name.."'s party")
local children = workspace.Parties:GetChildren()
for i, child in ipairs(children) do
if child.Players[player.Name] then
local partyName = child.Name
local children2 = workspace.Parties[partyName].Players:GetChildren()
for i, child2 in ipairs(children2) do
print("startMatch l37 "..child2.Name)
table.insert(t, child2.Name)
print("startMatch l39 ")
end
end
end
print("l43 startMatch ")
TS:TeleportPartyAsync(9758723522,t)
end