[REQUEST] Invalid command entered

Hello, is there a script out there or something i would need to modify so that if players were to type a command that does not exist on the server, the server triggers a client event and sends them the message “The command you entered is not valid”

If someone is able to guide me, would be fantastic!

Thanks in advance.

You can track any message that’s send with a slash and if it isn’t a command send a message back.

Essentialmode has this built in if you want to use that.

so basically it would be like
else
local event = ‘chatMessage’
local eventTarget = source
local messageSender = “SYSTEM”
local messageSenderColor = {200, 0, 0}
local message = “Usage: blablabla”

Uhmm what?

   

Oh damn, i misunderstood your post. My bad Kaner! Thanks for the info!