Hello! I was just wondering how I can make 2 things.
System chat message - Those fake chats in the chat like: “[SYSTEM] Message”. I have gotten a working script for that, but its handled on the client, and I was wondering if I could make it handled from the server, but shown to both 1 client at a time, or all clients in the game.
Global chat messages, those system chat messages that appear on all servers, ive tried some things. They dont work for me though.
For number 2, combine your script for number 1 with MessagingService.
Example:
--server script in serverscriptservice
local ms = game:GetService("MessagingService")
ms:SubscribeAsync("GlobalMessage", function(message)
--add the system message with 'message' as the message
end)
--ms:PublishAsync("GlobalMessage", "this is a global message")