Hey! so, im making a admin system for my game that is on the chat, and i wanted help on 2 things
First things is, when the player cant execute a command or mispells it, the system will send a message that will only appear for the player on the chat
And second thing is, every command that the player types wont appear on the chat
1- Lets say you have this format : prefix command player[can be all/me/others,specific person]
Now, let’s say someone says on chat : /flashe me [instead of /flash me], what you could do, is to use a remote to FireClient [to that player], and on Client, create a message on chat, saying to him that he misspelt or something.
2- You could either use Chat Service for it, and notPlayer.Chatted, or make a custom bar to execute commands, and without executing /firing it to chat.
If you want to achieve that system then you have to wait until roblox dev releases TextChatService
Other wise you can do what @Valkyrop mentioned in their post.
You could use a custom bar, if you want to make it easier.
Make a Frame, add a TextBox into it, and check what the Player/Admin types in that TextBox. If it’s a formatted command [such as : “/fire me”] then execute it with a remote [to fire the server].
Im pretty sure using a custom bar would be better and faster, but tower of hell games are like improved but classic games, so chat commands would be cooler
Its easy, play the game go to chat and copy everything inside.
Then stop the game and paste everything in chat
Then it will look like this
Then go to ChatModules then create a module, name it whatever you want.
Then put
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 -- This thing helps to hide the message.
end
return false
end
ChatService:RegisterProcessCommandsFunction("createPart", createPart)
end
return Run
then play the game and type /part to create a part. ChatService.rbxl (168.8 KB)