Help with script

So I want to make a chat custom chat filter that fires a remote event with the player who sent the message when a player says a word that is filtered but I am not exactly how to do this. I used the developer hub chat filtering tutorial to make this btw

local util = require(script.Parent:WaitForChild("Util"))
local RepStorage = game:GetService("ReplicatedStorage")
local event = RepStorage:WaitForChild("ToxicLanguage")

--Add any phrases or words to this table
local toxicChats = {
	"ez",
	"trash",
	"noob",
	"shut",
	"nub",
	"mic up",
	"cry",
	"bad",
	"imagine",
	"suck",
	"dumb",
	"idiot"
}
function ProcessMessage(message, ChatWindow, ChatSetting)
	message = string.lower(message)
	for i=1,#toxicChats do
		if message:find(toxicChats[i]) then
			event:FireServer()
			return message
		else
			
		end
	end
end

return {
	[util.KEY_COMMAND_PROCESSOR_TYPE] = util.COMPLETED_MESSAGE_PROCESSOR,
	[util.KEY_PROCESSOR_FUNCTION] = ProcessMessage
}