We use cookies on this site to enhance your user experience

Chat

Chat

The Chat service is a special service that houses all of the Lua code responsible for running Roblox’s in-game chat.
Similarly to the StarterPlayerScripts, there are default objects that are inserted into the Chat service, that can be overridden with your own scripts.

The following objects are guaranteed to exist inside of the Chat service, and can be overridden by your own objects:

The contents of the Chat service which are loaded when the game runs.

Properties

Name Type Description
bool

Toggles whether the default chat framework should be automatically loaded when the game runs.

Inherited from Instance

Archivable ClassName DataCost Name Parent RobloxLocked

Functions

Name Type Description
bool

Will return false if the player with the specified Player/UserId is not allowed to chat because of their account settings.

bool

Will return false if the two users cannot communicate because their account settings do not allow it.

void

Fires the Chat/Chatted event with the parameters specified in this method.

string

Filters a string being sent to playerTo from playerFrom with filtering that is appropriate to the given player’s account settings.

string

Filters a string sent from a player meant for broadcast to no particular target. More restrictive than /Chat/FilterStringAsync.

Inherited from Instance

ClearAllChildren Clone Destroy FindFirstAncestor FindFirstAncestorOfClass FindFirstAncestorWhichIsA FindFirstChild FindFirstChildOfClass FindFirstChildWhichIsA GetChildren GetDebugId GetDescendants GetFullName GetPropertyChangedSignal IsA IsAncestorOf IsDescendantOf WaitForChild

Events

Name Type Description

Fires when Chat/Chat is called.

Inherited from Instance

AncestryChanged Changed ChildAdded ChildRemoved DescendantAdded DescendantRemoving