How do I hide any message containing a / sent in the chat?

How do I hide any message containing a / sent in the chat?

If you haven’t got the answer you wanted in your first post yet, please don’t repost it - there are many people with many queries waiting to be answered, patience is key in this scenario.

Also, if you wanted to hide/not send a message containing a “/” in the chat. You would have to modify/edit ROBLOX’s chat module (or make your own), and edit the “MessageSender” module in the player - to have this -

function methods:SendMessage(message, toChannel)
	if not string.match(message, "/") then
		self.SayMessageRequest:FireServer(message, toChannel)
	end
	
end

rather than

function methods:SendMessage(message, toChannel)
	self.SayMessageRequest:FireServer(message, toChannel)
end
1 Like

How do I get the player who sent the message? I just want to prevent them from being able to chat