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
Summary
Properties
The TextChatMessage.PrefixText to override.
The TextChatMessage.Text to override.
The TextChatMessage.Translation to override.
Properties
Translation
The TextChatMessage.Translation to override; represents automatically translated and filtered text messages based on players' localization settings.