New text chat system messages

Hi, does anyone know how to make visual chat notification (only for user) and a notification for everyone on the server?

You can use the TextChannel:DisplaySystemMessage() function. You need to do it on the client, though.

local tcs = game:GetService("TextChatService")
local channels = tcs:WaitForChild("TextChannels")
local channel = channels:WaitForChild("RBXGeneral")

local function displayMessage(content: string)
    channel:DisplaySystemMessage(content)
end
--note you will need to use HTML markup for things like colours

For legacy chat, use StarterGui:SetCore("ChatMakeSystemMessage")

Can you write it a bit easier pls?

What do you mean…?

like this?

local message = "<font color = 'rgb(255, 170, 0)'>this is an orange chat message.</font>"
channel:DisplaySystemMessage(message) --outputs the orange message

Yeah, it’s that I wanted to know

1 Like

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