I need help with PublishAsync

I’m trying to make a chat message show in every server. I made a print show up in every server, but how can I make publishAsync work with a remote event?

MessagingService:PublishAsync(“GlobalMessagePrint”,message)
game.ReplicatedStorage.ServerMessage:FireAllClients(message)

I need publishasync for it to show in every server, right? if so, how can I do it on an event?

1 Like

Yes you do. You need publish async to do so. If you want you can do the function inside subscribe async then make it fire all clients. I’d recommend that you look at me game’s scripts as it does something similar to what u want. Open sourced game here: Cross server chatting system - Roblox

1 Like

Just call PublishAsync() from within a callback function connected to an event if the message should be displayed in response to an event being fired.

1 Like