ChatWindowConfiguration
Configures properties of the default text chat window. It is parented to TextChatService.
Summary
Properties
Actual screen position of the default chat window, in pixels.
Actual screen size of the default chat window, in pixels.
Background color of the default chat window.
Background transparency of the default chat window.
Whether to show the default chat window.
Font used to render text in the default chat window.
Factor by which the height of the default chat window should be scaled.
Horizontal alignment of the chat window.
Color of the text in default chat window.
Size of the text in default chat window.
Color of the text stroke for text in default chat window.
Transparency of the text stroke for text in default chat window.
Vertical alignment of the chat window.
Factor by which the width of the default chat window should be scaled.
Methods
Creates a new ChatWindowMessageProperties instance that can be used to customize the appearance of messages in the chat window.
Properties
AbsolutePosition
AbsoluteSize
BackgroundColor3
BackgroundTransparency
Enabled
FontFace
HeightScale
HorizontalAlignment
TextColor3
TextSize
TextStrokeColor3
TextStrokeTransparency
VerticalAlignment
WidthScale
Methods
DeriveNewMessageProperties
Returns
Code Samples
local TextChatService = game:GetService("TextChatService")
local directChatParticipants = TextChatService:CanUsersDirectChatAsync(userId1, { userId2 })
-- Check for eligible participants
if #directChatParticipants > 0 then
local directChannel = Instance.new("TextChannel")
directChannel.Parent = TextChatService
for _, participant in directChatParticipants do
directChannel:AddUserAsync(participant)
end
return directChannel
end
warn("Could not create TextChannel. Not enough eligible users.")
return nil