Skip to content

Class · inherits TextChatMessageProperties

ChatWindowMessageProperties

Official docs ↗

Customizes the appearance of an individual text chat message displayed in the chat window.

About ChatWindowMessageProperties

Can be used to customize the appearance of text chat messages sent to the ChatWindow. Inherits from TextChatMessageProperies. To create a new ChatWindowMessageProperties instance, use ChatWindowConfiguration.DeriveNewMessageProperties which will have the current properties from ChatWindowConfiguration.

local TextChatService = game:GetService("TextChatService")

local ChatWindowConfiguration = TextChatService:FindFirstChildOfClass("ChatWindowConfiguration")

TextChatService.OnChatWindowAdded = function(message: TextChatMessage)
  -- Derive chat message properties
  local properties = ChatWindowConfiguration:DeriveNewMessageProperties()

  -- Change color of message within the chat window
  properties.TextColor3 = Color3.fromRGB(255, 121, 121)

  return properties
end

Properties 6

  • FontFace: Datatype.FontFont used to render text in the chat window.

    Determines the font used to render text in the chat window. Default is Font.BuilderSansMedium.

  • PrefixTextProperties: ChatWindowMessagePropertiesDetermines the properties of the PrefixText preceding the chat message.

    Determines the properties of the TextChatMessage.PrefixText preceding the chat message.

  • TextColor3: Color3Color of the text in the chat window.

    Determines the color of the text in the chat window. Default value is Datatype.Color3.fromRGB(255, 255, 255) (white).

  • TextSize: intSize of the text in the chat window.

    Determines the size of the text in the chat window.

  • TextStrokeColor3: Color3Stroke color applied to text in the chat window.

    Determines the stroke color applied to text in the chat window. Default value is Datatype.Color3.fromRGB(0, 0, 0) (black).

  • TextStrokeTransparency: doubleTransparency of the stroke applied to text in the chat window.

    Determines the transparency of the stroke applied to text in the chat window. Default value is 0.5.

ChatWindowMessageProperties also has every member of TextChatMessageProperties. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.