I have a chat filter ModuleScript under Chat > ChatModules
local functionId = "editText"
local function doFilter(speaker, messageObject, channelName)
--filter
end
local function runChatModule(ChatService)
ChatService:RegisterFilterMessageFunction(functionId, doFilter)
end
return runChatModule
I want to disable the filter if the player is private messaging a friend in the game. How do I do so?
Note that I’m NOT removing the default roblox chat filter and I DID NOT modify it in any way.