Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to delete a message in chat?

Asked by 6 years ago

I'm trying to make something like an admin script but I want the message (for example all messages with a prefix of /) to be deleted so nobody can see them, how would I go about doing that?

1 answer

Log in to vote
0
Answered by 6 years ago

Rather than deleting the message, you can force it to not be displayed by checking your command inside of RegisterProcessCommandsFunction. Return true when a command is detected, and the message won't be displayed.

0
Sorry but how would I do that? I know nothing of using the chat system or anything. DivineObliteration 9 — 6y
0
You can start by learning Lua. http://lua-users.org/wiki/LearningLua User#6546 35 — 6y
0
lol I know how lua works, I just don't know how the chat system works, it seems confusing DivineObliteration 9 — 6y
0
I don't know wich stupid person disliked this post, because from my research and my command system I use the same thing (I don't even think there is an alternative) and if you know how to script you know how to do this. and if you ask for a script your question should be moderated. User#20388 0 — 6y
View all comments (4 more)
0
lmao I'm not asking for the script, I want to know how I'm supposed to make it. It's not like I can just do "Chat:RegisterProcessCommandsFunction" DivineObliteration 9 — 6y
0
It's litterly that, it's a function wich you have to send a return true value to stop it from sending the message, to use it copy the chat contents when in play mode and copy them in studio, then add a module script in chat modules and put it in there, you can get the chatservice by requiring it, if you need any more help post it either here or send me a message User#20388 0 — 6y
0
Well thank you for explaining it, it's not exactly obvious that I need a module script and that I need to put it into chat modules. DivineObliteration 9 — 6y
0
Except that you literally just need a function User#6546 35 — 5y
Ad

Answer this question