Is it possible to make a cross server chat?

Hello developers,

I have made a singleplayer game and i kind of want to make a feature where you can have a chatbox and talk to other players through it. I know that messagingservice is a thing but im not really sure about how it works. If someone could help me understand it a bit more, it would be appreciated!

here is a good place to start learning: Cross-Server Messaging


there is also some code here: MessagingService:SubscribeAsync


and you can look here to see the limitations: MessagingService


but the messaging service has 2 main functions

use MessagingService:PublishAsync to send a message and MessagingService:SubscribeAsync to receive the message

local messagingService = game:getService("MessagingService")

-- listen for messages sent to "Topic"
messagingService:SubscribeAsync("Topic", function(message)
    print(message.Sent, message.Data)
end)

-- send a messages to "Topic"
MessagingService:PublishAsync("Topic", "Hi i'm a message")
3 Likes