There’s been many posts about similar issues, nothing was able to fix the issue
And there’s different SubscribeAsync topic, but that one seems to work
I fired the bindable under the server-script
Me inside my own private server can see the message
But my friend in another vip did not receive the message
it doesnt even show > print({result}, {result.Message}) on his server
Calling ‘.Send’ inside ModuleScript
task.spawn(GlobalChatModule.Send,
player,
GlobalChatModule.Templates.HugeHatch(player, asset.Name)
)
ModuleScript
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local MessagingService = game:GetService("MessagingService")
local RunService = game:GetService("RunService")
local Module = {}
Module.Templates = {}
function Module.Send(player: Player, Message: string)
if RunService:IsClient() then
return
end
xpcall(MessagingService.PublishAsync, warn, MessagingService,
"GlobalChatMessage", { Name = player.Name, Message = Message })
end
Module.Templates.HugeHatch = function(player: Player, petName: string)
return `[🌎 Global]: <font color="rgb(255, 180, 50)">@{player.Name}</font> hatched <font color="rgb(204, 0, 255)">{petName}</font>! 🎉`
end
return Module
Server
local MessagingService = game:GetService("MessagingService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
function OnReceive(result: {Message: string})
print(`{result}, {result.Message}`)
ReplicatedStorage.RemoteEvents.Chat:FireAllClients{
Text = result.Message,
Color = "rgb(255, 255, 255)"
}
end
MessagingService:SubscribeAsync("GlobalChatMessage", OnReceive)
script.BindableEvent.Event:Connect(OnReceive)
