so i am making commands and i want it if i type / then it wont end up in chat is there any way to do that? so like if i know that it starts with a / how do i disable it from being chatted?
You can start by following this article: https://developer.roblox.com/en-us/articles/Lua-Chat-System
Basically you need to copy all the contents of chat when playtesting the game, stopping the playtest and then pasting the stuff into the empty chat. Then set the scriptable proprrty of chat to true. You can then follow the instructions in the article to create the script you want.
.
local function Run(ChatService) local function createPart(speakerName, message, channelName) if string.sub(message, 1, 5) == "/part" then local newPart = Instance.new("Part") newPart.Parent = game.Workspace return true end return false end ChatService:RegisterProcessCommandsFunction("createPart", createPart) end return Run
as you can see, we create a modulescript, and put it into the chatmodules folder. in the module we have a function called run, and do stuff in the function. we then create a function in the function called create part, which takes in the message, player who chatted it, and the channel or where its been chat. we then get the message and string.sub ("/part",1,5), which checks if the first five characters (1,5) is /part.
If it is, we then create a part, and return true. After that is the end of the function create part.
After declaring the function create part, we have to pass it through the event ChatService:RegisterProcessCommandsFunction.
Hope this helps!
U could try making a seperate admin panel, that only takes commands.
I don't know if this helps but i found someone asking aproximately the same thing on the roblox dev forum. This is the link to it!
https://devforum.roblox.com/t/how-do-i-make-certain-messages-not-show-up-in-chat/104828/6
Hopefully it will help you! :D