Filtering chat ChatMakeSystemMessage

Why does ChatMakeSystemMessage does not filter texts?

For example

local StarterGui = game:GetService("StarterGui");

StarterGui:SetCore("ChatMakeSystemMessage",{
	Text = "Swear";
	Color = Color3.new(0,1,1);
    Font = Enum.Font.Cartoon;
	FontSize = Enum.FontSize.Size24;
});

If we replace the text swear to bad word and play the game, it won’t get filtered is that an issue or do I need to do it manually?

1 Like

You need to manually filter the chat message using FilterStringForBroadcast or similar.

Does FilterStringForBroadcast need to be wrapped in pcall()?

1 Like

Incase of ChatService or filtering failures you should wrap it in a pcall with a callback, yes.

Typically, anything that’s internally a web call should be wrapped in a pcall (e.g. DataStoreService and TextService methods).

1 Like