Edit Messages using player.Chatted

I want to make a no toxicity system for editing messages in chats if the game finds toxic words like “ez”, this is done in zo, a good game.

Problem is I don’t know how to edit messages and what to use, I tried doing message = “something”, but it didnt work.

Is there a way to do this? If so, can you tell me?

You might have to fork the ChatService module. You can check it out here: In-Experience Text Chat | Roblox Creator Documentation
Try to find the SayMessage function within ChatSpeaker and make changes from there.

This is possible through the Lua Chat System, however I’d be careful since editing the chat messages may not make the players happy.