How to make it so when you say a certain message it doesn't show in chat?

I’m making an admin commands script, but I want to not show the commands in chat.

How do I do this?

2 Likes

Well first off, are you using the legacy chat or the new chat? To check, go to TextChatService and look at the ChatVersion.

2 Likes
  1. There are plenty of posts on how to “hide” chat messages.
  2. If you have a custom chat, that would be easier.
1 Like

I don’t have a custom chat, I don’t like those.

I can’t find any good posts.

1 Like

It doesn’t show it in explorer.

What even is the new chat?

Ok nvm I figured it out, im using the new chat
image

1 Like

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

More about the event

1 Like