How do I change System Text's Color on the new TextChatService?

For those who are reading this in the future, you can use TextChannel.OnIncomingMessage or TextChatService.OnIncomingMessage to handle this in the future.

The two properties are similar except TextChannel’s will only run on messages that go through the channel and TextChatService’s will run on all messages.

For example, this snippet will change the message color of all messages that would display in the default RBXSystem channel.

TextChatService.OnIncomingMessage = function(textChatMessage)
    local textChannel = textChatMessage.TextChannel
    if textChannel and textChannel.Name == "RBXSystem" then
        local overrideProperties = Instance.new("TextChatMessageProperties")
        overrideProperties.Message = string.format("<font color='#FF0000'>%s</font>", textChatMessage.Text)
        return overrideProperties
    else
        return nil
    end
end
22 Likes