Help on making a global message system

  1. What do you want to achieve? I want to make a chat message appear in every single server.

  2. What solutions have you tried so far? MessagingService, but I can’t seem to find out how to make a chat message work with that.

		Text = "[SERVER]:";
		Color = Color3.fromRGB(0,255,0);
		Font = Enum.Font.SourceSansBold;
		FontSize = Enum.FontSize.Size24;

This seems very complicated, all i could suggest is using a similar system like this person -
“Creating Global Announcements” - i think they used “On update”

1 Like

Use the SubscribeAysnc function of messaging service to listen for messages, and PublishAsync to send messages across the servers. It would look something like this:

local MS = game:GetService("MessagingService")
local TOPIC = "Global_Message"

--Listens for any global messages
local subscribeSuccess, subscribeConnection = pcall(function()
	return MS:SubscribeAsync(TOPIC, function(message)
		--Send the message to everyone in the server

if subscribeSuccess then
	warn("Subscribe failed.")

--Publish the message to all servers
local function SendGlobalMessage (Message)
	local publishSuccess, publishResult = pcall(function()
		MS:PublishAsync(TOPIC, Message)
	if not publishSuccess then
		warn("Broadcast failed.")
1 Like

hey, I made this cross server chatting system thats open sourced. Feel free to use the code and stuff in your game. If you want an explanation about the basics about messaging service then look at @DestroyerCam’s post. Look here: Cross server chatting system - Roblox

Just some more related links in addition to the one which you provided.