ChatWindowConfiguration
Show Deprecated
Summary
Properties
Methods
Properties
AbsolutePosition
AbsoluteSize
BackgroundColor3
BackgroundTransparency
Enabled
FontFace
HeightScale
HorizontalAlignment
TextColor3
TextSize
TextStrokeColor3
TextStrokeTransparency
VerticalAlignment
WidthScale
Methods
DeriveNewMessageProperties
Returns
Code Samples
CanUsersDirectChatAsync
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