I’m making an admin commands script, but I want to not show the commands in chat.
How do I do this?
I’m making an admin commands script, but I want to not show the commands in chat.
How do I do this?
Well first off, are you using the legacy chat or the new chat? To check, go to TextChatService and look at the ChatVersion.
I don’t have a custom chat, I don’t like those.
I can’t find any good posts.
It doesn’t show it in explorer.
What even is the new chat?
Ok nvm I figured it out, im using the new chat
Alright, then you can use this event here to modify the message text. Below is an example.
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")
TextChatService.OnIncomingMessage = function(message: TextChatMessage)
local properties = Instance.new("TextChatMessageProperties")
properties.Text = message.Text --//Will send the normal message
properties.Text = '' --//Will not post anything
return properties
end