Title explains it all. I want to use the ROBLOX's chat filter. Default chat. Thanks in advance. (I am a scripting noob)
COMMUNITY QUESTION
How to filter the chat using ROBLOX's chat filter?
1 answer
You should use :FilterStringForBroadcast().
local txt = "Hello, this message is being filtered!"
local plr = --Insert who inserted this text.
function FilterText() --This should be in a pcall, as sometimes this may error, as it makes a web call.
game:GetService("Chat"):FilterStringForBroadcast(txt, plr)
end
local s, m = pcall(FilterText)
if not s then
warn('Filtering this text got an unexpected error.')
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
WIKI Article: http://wiki.roblox.com/index.php?title=Text_Filtering
http://wiki.roblox.com/index.php?title=Text_Filtering#How_to_filter_text