TextChatMessageProperties

Show Deprecated

Overrides TextChatMessage properties when returned by callbacks defined in TextChatService.OnIncomingMessage or TextChannel.OnIncomingMessage. This can be used to customize the appearance of a message with rich text tags.


local TextChatService = game:GetService("TextChatService")
TextChatService.OnIncomingMessage = function(message: TextChatMessage)
-- Derive chat message properties
local properties = TextChatService.ChatWindowConfiguration:DeriveNewMessageProperties()
-- Change color of message
properties.TextColor3 = Color3.fromRGB(255, 121, 121)
-- Set chat window message properties
message.ChatWindowMessageProperties = properties
return properties
end

Properties

PrefixText

Read Parallel

The TextChatMessage.PrefixText to override.

Text

Read Parallel

The TextChatMessage.Text to override.

Translation

Read Parallel

The TextChatMessage.Translation to override; represents automatically translated and filtered text messages based on players' localization settings.

Methods

Events