2 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

ChatCallbackType

Enumerates the callback hook points available in the legacy Luau chat system. Pass a value to Chat:RegisterChatCallback() to bind a function to the corresponding event, and to Chat:InvokeChatCallback() to invoke the registered function for that event. Each value targets either the client or the server; attempting to register a server-only callback on the client (or vice versa) raises an error.

Items

NameValueDescription
OnCreatingChatWindow1Client-only callback invoked before the chat window is constructed, allowing custom settings to be supplied.
OnClientSendingMessage2Client-only callback reserved for when the client sends a message; not currently invoked.
OnClientFormattingMessage3Client-only callback invoked before a message is displayed, allowing its display data to be modified.
OnServerReceivingMessage17Server-only callback invoked when the server receives a message from a speaker, allowing the message to be modified or suppressed.

OnCreatingChatWindow

Client-only callback invoked before the chat window is constructed, allowing custom settings to be supplied.

FieldValue
value1

OnClientSendingMessage

Client-only callback reserved for when the client sends a message; not currently invoked.

FieldValue
value2

OnClientFormattingMessage

Client-only callback invoked before a message is displayed, allowing its display data to be modified.

FieldValue
value3

OnServerReceivingMessage

Server-only callback invoked when the server receives a message from a speaker, allowing the message to be modified or suppressed.

FieldValue
value17