Hidden chat command

How would I go about to making a hidden chat command so no players can see when a
command is being said?

game.Players.PlayerAdded:Connect(function(Player)
	Player.Chatted:Connect(function(message)
		if message == "/test" then
			-- Do thing
		end
	end)
end)

You could probably edit the current Chat script that disables bubble’s appearing for messages starting with ‘/e’ but I’m not 100% sure how

Solution LocalScript:

Im pretty sure anything to do with chat in a localscript can only be seen by plr.

Do this from the Lua Chat System and Command Functions. You can return true from the command function if a message matches your command and it’ll stop the message from being processed by other parts of the chat system including displaying it in the chat window or bubble chat.

1 Like