Deleting Chat Messages

What its For:
I was creating a custom admin system using the default ROBLOX chat system. It has multiple different commands. The commands will be used to change player stats or just about whatever I just want them to do.

Issue:
I don’t want others to be able to see the -change (player) (amount of cash) so I was trying to find a way to delete messages once there sent in the chat. I thought there was a way but can’t find anything on devfourm about it or developer hub. Is there a way to delete messages in the chat once there sent?

I recommend this:

Returning true tells the Chat manager not to push the message globally, just to execute the function once they type that exact command “/pizza”.

Returning false does the opposite, it sends the message.

Docs:

Forking the chat?

Lua Chat System

5 Likes

for the lazy way to do it that i used to use when i would play admin games back in 2017 i just used to do /e {cmd} but if youre going for a actual way to do it in the script then i recommend creating a command bar like HD, Khols, and other admin systems!

Answer from another thread asking how to do the exact same thing:

You could possibly use a script that would set the message to something like " " instead.