Hi im struggling when send table to global rn
Send table to global:
function Party.SendToGlobal(tables, status)
if status == "Add" then
messgagingService:PublishAsync("Matchmaking", PartyIntermission[tables])
elseif status == "Remove" then
messgagingService:PublishAsync("MatchmakingRemove", tables)
end
end
SubscribeAsync to global:
messgagingService:SubscribeAsync("Matchmaking", function(message)
table.foreach(message.Data)
table.insert(GlobalMatchmaking, message.Data)
end)
message.Data return me table, after use foreach to print it, it still return table