What do you want to achieve? I want to make a chat message appear in every single server.
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.
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
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”
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
end)
end)
if subscribeSuccess then
game:BindToClose(function()subscribeConnection:Disconnect()end)
else
warn("Subscribe failed.")
end
--Publish the message to all servers
local function SendGlobalMessage (Message)
local publishSuccess, publishResult = pcall(function()
MS:PublishAsync(TOPIC, Message)
end)
if not publishSuccess then
warn("Broadcast failed.")
end
end
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