This article is about the chat service in Roblox Studio. For the in-game chat, see In-game chat.
The Chat class inherits from Instance. It is a service, so it cannot be instantiated. It is used to make characters or inanimate objects chat and to filter text.
Contents
- 1 Properties
- 2 Methods
- 2.1 CanUserChatAsync(userId: int64): bool
- 2.2 CanUsersChatAsync(userIdFrom: int64, userIdTo: int64): bool
- 2.3 Chat(partOrCharacter: Instance, message: string, color: ChatColor = Blue): null
- 2.4 ChatLocal(partOrCharacter: Instance, message: string, color: ChatColor = Blue): null
- 2.5 FilterStringAsync(stringToFilter: string, playerFrom: Player, playerTo: Player): string
- 2.6 FilterStringForBroadcast(stringToFilter: string, playerFrom: Player): string
- 2.7
FilterStringForPlayerAsync(stringToFilter: string, playerToFilterFor: Player): string
- 2.8 GetShouldUseLuaChat(): bool
- 2.9 InvokeChatCallback(callbackType: ChatCallbackType, callbackArguments: Tuple): Tuple
- 2.10 RegisterChatCallback(callbackType: ChatCallbackType, callbackFunction: Function): null
- 2.11 SetBubbleChatSettings(settings: Variant): null
- 3 Events
- 4 Removed members
- 5 External links
Properties
- Category: Behavior.
- Serialization: can save and load.
- Thread safety: read safe
IsAutoMigrated: bool
This class member is missing documentation. Create or add to its subpage at Class:Chat/IsAutoMigrated.
- Category: Data.
- Read security: RobloxScriptSecurity.
- Write security: RobloxScriptSecurity.
- Serialization: can save and load.
- Thread safety: read safe
- Category: Behavior.
- Write security: NotAccessibleSecurity.
- Serialization: can save and load.
- Thread safety: read safe
Methods
ParametersName | Type |
---|
userId | int64 |
CanUsersChatAsync(userIdFrom: int64, userIdTo: int64): bool
ParametersName | Type |
---|
userIdFrom | int64 |
userIdTo | int64 |
ChatLocal(partOrCharacter: Instance, message: string, color: ChatColor = Blue): null
ParametersName | Type | Default |
---|
partOrCharacter | Instance | |
message | string | |
color | ChatColor | Blue |
- Security: RobloxScriptSecurity.
- Thread safety: unsafe
ParametersName | Type |
---|
stringToFilter | string |
playerFrom | Player |
playerTo | Player |
ParametersName | Type |
---|
stringToFilter | string |
playerFrom | Player |
ParametersName | Type |
---|
stringToFilter | string |
playerToFilterFor | Player |
- Security: RobloxScriptSecurity.
- Thread safety: unsafe
ParametersName | Type |
---|
settings | Variant |
Events
ParametersName | Type |
---|
settings | Variant |
- Security: RobloxScriptSecurity.
- Thread safety: unsafe
TimeoutChatAttempt(isPermanentTimeout: bool, endTime: int64)
This class member is missing documentation. Create or add to its subpage at Class:Chat/TimeoutChatAttempt.
- Security: RobloxScriptSecurity.
- Thread safety: unsafe
Removed members
External links