So i’m trying to make a global chat for my game, and I was wondering how to send more than one variable in MessagingService?
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:connect(function(msg)
game:GetService("MessagingService"):PublishAsync("Message",msg,player.Name)
end)
end)
when I do this script, it only sends one piece of data and that was msg(player.Name sends as nil). I want it to send both the msg and the player’s name. is there way?