So far the only solution I have found is replacing the whole player’s message. What I want to do is anytime a player has the letter L in their message, replace it with the letter E
local functionId = "editText"
local function doFilter(speaker, messageObject, channelName)
if messageObject.Message == "L" then
messageObject.Message = "E"
end
end
local function runChatModule(ChatService)
ChatService:RegisterFilterMessageFunction(functionId, doFilter)
end
return runChatModule