Chat message system

Hello! I was just wondering how I can make 2 things.

  1. 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.

  2. Global chat messages, those system chat messages that appear on all servers, ive tried some things. They dont work for me though.

1 Like

For number 2, combine your script for number 1 with MessagingService.

--server script in serverscriptservice
local ms = game:GetService("MessagingService")
ms:SubscribeAsync("GlobalMessage", function(message)
    --add the system message with 'message' as the message

--ms:PublishAsync("GlobalMessage", "this is a global message")

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.