TextChatService

Show Deprecated
Not Creatable
Service

Summary

Properties

Methods

Properties

ChatTranslationEnabled

Not Replicated
Roblox Script Security
Read Parallel

ChatVersion

Roblox Script Security
Read Parallel

CreateDefaultCommands

Plugin Security
Read Parallel

CreateDefaultTextChannels

Plugin Security
Read Parallel

Methods

DisplayBubble

()

Parameters

partOrCharacter: Instance
Default Value: ""
message: string
Default Value: ""

Returns

()

CanUserChatAsync

Yields

Parameters

userId: number
Default Value: ""

Returns

CanUsersChatAsync

Yields

Parameters

userIdFrom: number
Default Value: ""
userIdTo: number
Default Value: ""

Returns

CanUsersDirectChatAsync

Yields

Parameters

requesterUserId: number
Default Value: ""
userIds: Array
Default Value: ""

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

Events

BubbleDisplayed

Parameters

partOrCharacter: Instance
textChatMessage: TextChatMessage

MessageReceived

Parameters

textChatMessage: TextChatMessage

SendingMessage

Parameters

textChatMessage: TextChatMessage

Callbacks

OnBubbleAdded

Parameters

adornee: Instance

Returns

OnChatWindowAdded

Parameters


Returns

OnIncomingMessage

Parameters


Returns