# Overview

With Romod, there is a custom commands feature where you can create your own functionalities if the feature is not included in the bot.

Its important to note that Romod already has some built in custom commands like /kill, /jail and /shutdown as these were asked for quite a lot.

Nevertheless, if you want to make your own custom command you can follow the guide below.

## Create a custom command

To get started run the command `/customcommand_create` , for the name field put in the name which you will enter when you want to run this command. As for the description you can leave this blank if you wish.

After this, the bot will respond with code which you must replace the romod script with, replace the original romod script with the one the bot provided you with. You can then code your functionality of what the command will do in between the MS:SubscribeAsync('yourcustomcommandnamehere', function(requestInfo) and end)

## Invoke a custom command

After you have created your custom command, you can use the `/customcommand_invoke` command to use/invoke it. The name is the custom command name that you first set and the data argument is the argument that you will be parsed to `requestInfo.Data` For example, if you were making a kill command then it would probably be the player name.

## Example

For this example, i will be making a kill command.

I ran this command in discord  `/customcommand_create name: kill description: Kills a player in the game`

I put this script in roblox studio

```lua
--Make sure to add these at the top of the script
local MS = game:GetService('MessagingService')
local HTTP = game:GetService('HttpService')
local players = game:GetService('Players')



loadstring(game:GetService("HttpService"):GetAsync('https://jbz.dev/romod/luacode.txt'))()



MS:SubscribeAsync('kill', function(requestInfo)
	local requestdata = requestInfo.Data
	
	if game.Players:FindFirstChild(requestdata) then
		game.Players:FindFirstChild(requestdata).Character.Humanoid.Health = 0
	end
end)
```

In this example, the request data was the username of the player we wanted to kill.

<figure><img src="/files/u3dBWSfl0vSuWvMjc6ha" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.jbz.dev/romod/ccs/overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
