Skip to content
Roblox API Reference

Chat

Houses the Luau code responsible for running the legacy chat system.
  • Not creatable
  • Not replicated
  • Service
Memory category
Instances
Own members
27
Inherited members
75
Subclasses
0
Siblings
608

Properties27

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byChat4

Property categoryBehavior

  • Chat.BubbleChatEnabled: boolean = false
    Determines whether player's chat messages will appear above their in-game avatar.
    • Read capabilities: Chat
  • Chat.LoadDefaultChat: boolean = true
    Toggles whether the default chat framework should be automatically loaded when the game runs.
    • Write: Not accessible
    • Read capabilities: Chat

Property categoryData

  • Chat.IsAutoMigrated: boolean = false
    • Hidden
    • Roblox script security
    • Read capabilities: Chat
  • Chat.ModerationMode: string = "Unsupported"
    • Hidden
    • Not replicated
    • Roblox script security
    • Read capabilities: Chat

Methods55

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byChat13
  • Chat:CanUserChatAsync(userId: number): boolean
    Will return false if the player with the specified Player.UserId is not allowed to chat because of their account settings.
    • Yields
    • Capabilities: Chat
    Parameters
    Parameter
    userId: number
    Returns
    Type
    boolean
  • Chat:CanUsersChatAsync(userIdFrom: number, userIdTo: number): boolean
    Will return false if the two users cannot communicate because their account settings do not allow it.
    • Yields
    • Capabilities: Chat
    Parameters
    Parameter
    userIdFrom: number
    userIdTo: number
    Returns
    Type
    boolean
  • Chat:Chat(partOrCharacter: Instance,message: string,color: Enum.ChatColor? = Enum.ChatColor.Blue,)
    Fires the Chat.Chatted event with the parameters specified in this method.
    • Capabilities: Chat
    Parameters
    ParameterDescription
    partOrCharacter: Instance
    An instance that is the part or character which the BubbleChat dialog should appear above.
    message: string
    The message string being chatted.
    color: Enum.ChatColor? = Enum.ChatColor.Blue
    An ChatColor specifying the color of the chatted message.
  • Chat:ChatLocal(partOrCharacter: Instance,message: string,color: Enum.ChatColor? = Enum.ChatColor.Blue,)
    • Roblox script security
    • Capabilities: Chat
    Parameters
    Parameter
    partOrCharacter: Instance
    message: string
    color: Enum.ChatColor? = Enum.ChatColor.Blue
  • Chat:FilterStringAsync(stringToFilter: string,playerFrom: Player,playerTo: Player,): string
    Filters a string sent from a player to another player using filtering that is appropriate to the players' account settings.
    • Yields
    • Capabilities: Chat
    Parameters
    ParameterDescription
    stringToFilter: string
    The raw string to be filtered, exactly as entered by the player.
    playerFrom: Player
    The author of the text.
    playerTo: Player
    The intended recipient of the provided text; use the author if the text is persistent (see description).
    Returns
    Type
    string
  • Chat:FilterStringForBroadcast(stringToFilter: string,playerFrom: Player,): string
    Filters a string sent from a player meant for broadcast to no particular target. More restrictive than Chat:FilterStringAsync().
    • Yields
    • Capabilities: Chat
    Parameters
    ParameterDescription
    stringToFilter: string
    Message string being filtered.
    playerFrom: Player
    Instance of the player sending the message.
    Returns
    TypeDescription
    string
    Filtered message string.
  • Chat:GetShouldUseLuaChat(): boolean
    • Roblox script security
    • Capabilities: Chat
    Returns
    Type
    boolean
  • Chat:InvokeChatCallback(callbackType: Enum.ChatCallbackType, ...: any): ...any
    Invoke a chat callback function registered by RegisterChatCallback. Used by the Luau Chat System.
    • Capabilities: Chat
    Parameters
    ParameterDescription
    callbackType: Enum.ChatCallbackType
    The type of callback to invoke.
    ...: any
    The arguments that will be sent to the registered callback function.
    Returns
    TypeDescription
    ...any
    The values returned by the function registered to the given ChatCallbackType.
  • Chat:ReconcileCommunicationAccess()
    • Roblox script security
    • Capabilities: Chat
  • Chat:RegisterChatCallback(callbackType: Enum.ChatCallbackType,callbackFunction: (...any) -> ...any,)
    Register a function to be called upon the invocation of some chat system event (InvokeChatCallback).
    • Capabilities: Chat
    Parameters
    ParameterDescription
    callbackType: Enum.ChatCallbackType
    The callback to which the function shall be registered (this determines in what way the function is called).
    callbackFunction: (...any) -> ...any
    The function to call when the callback is invoked using Chat:InvokeChatCallback.
  • Chat:RequestModerationModeEnabled(enabled: boolean)
    • Roblox script security
    • Capabilities: Chat
    Parameters
    Parameter
    enabled: boolean
  • Chat:SetBubbleChatSettings(settings: any)
    Customizes various settings of the in-game bubble chat.
    • Capabilities: Chat
    Parameters
    ParameterDescription
    settings: any
    A settings table.
  • Chat:FilterStringForPlayerAsync(stringToFilter: string,playerToFilterFor: Player,): string
    Deprecated: This item has been superseded by Chat:FilterStringAsync() and Chat:FilterStringForBroadcast() which should be used in all new work
    Filters a string appropriate to the given player's age settings, so they see what is appropriate to them.
    • Deprecated
    • Yields
    • Capabilities: Chat
    Parameters
    ParameterDescription
    stringToFilter: string
    String being filtered.
    playerToFilterFor: Player
    Player that the string is being filtered for.
    Returns
    TypeDescription
    string
    Filtered string result.

    Use FilterStringAsync instead.

Events20

Inherited fromObject1
Inherited fromInstance9
Defined byChat10