Hey guys, I am trying to make a Global announcement system, but it doesn’t send the data.SenderName blah blah blah to the client on ANY other server that is not the server, where the globalanc messageservice was sent from.
ReplicatedStorage.Events.ItemShop.ActualGlobalAnc.OnServerEvent:Connect(function(player, message)
-- code
local data = {
SenderName = tonumber(player.UserId),
Message = tostring(filteredText),
}
pcall(function()
MessagingService:PublishAsync("GlobalAnc", data)
end)
end)
MessagingService:SubscribeAsync("GlobalAnc", function(message)
local data = message.Data
if not data then return end
for i,v in pairs(game.Players:GetPlayers()) do
ReplicatedStorage.Events.ItemShop.ActualGlobalAnc:FireClient(v, data.SenderName, data.Message)
end
end)
Are you using studio to test messaging service? As far as I know, messaging service doesn’t actually function in studio. I believe its essentially isolated.
yeah. like i said before, it gets handled in the server where the GlobalAnc was published, but not on others. (on others-processes the fireclient, but doesnt get the Message or SenderName)