How to make a system chat message using the new text chat system using the non-client sided script (just a script)?

Hi. I’m making chat messages in my game, but I can’t do the chat system message thing. How can I make a chat message from the non-client script using the new text chat system? Help! Also, it would be great to see a tutorial on how to make a thing that will send a system message to me only and one for everyone.

1 Like

Thats impossible, TextChatService uses a Client → Server → Client communication.

Create a local script and use this code in this Post stating:
game.TextChatService:WaitForChild("TextChannels"):WaitForChild("RBXGeneral"):DisplaySystemMessage(Message)

Rich Text is supported, and can be used to make the message look like how you want to.

client component:

local remote =  --put your remote event here
remote.OnClientEvent:Connect(function(...)
    game.TextChatService.TextChannels.RBXSystem:DisplaySystemMessage(...)
end

server component:

local remote =  --put your remote event here
remote:FireAllClients("hai :3") -- sends a system message to every client

So, if I use FireClient it will display only for myself, but if I’ll do FireAllClients it will display to everyone?
Also, how can I make a custom font and color of the message?

FireAllClients(message, metadata) displays it to everyone, if you only want it to display to one person you must do FireClient(player, message, metadata)

also you can use richtext to customize your message Rich Text Markup | Documentation - Roblox Creator Hub
e.g: <b>text</b> would make your text bold

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