Custombinds are a type of bind that allow you to use our Lua-like scripting language to write highly customizable binds.
To create a single custombind, run the command /custombinds new
.
It requires 3 arguments and has 2 optional arguments.
true
or false
based on the user.The syntax that custombinds use is modelled after Lua. The code, in essence, is an if
statement of Lua. We recommend you to
use custombinds ONLY if you have previous experience with Lua.
We support the following operators:
Operator | Description | Aliases |
---|---|---|
and | If both operands are true or non-zero, then condition becomes true | |
or | If any of the operands is true or non-zero, then condition becomes true | |
not | Used to reverse the logical value of the operand. If the condition is true, this operator makes it false and vice versa | ! |
Operator | Description |
---|---|
> | Checks if the value of the left operand is greater than the value of the right operand |
>= | Checks if the value of the left operand is greater than or equal to the value of the right operand |
< | Checks if the value of the left operand is less than the value of the right operand |
<= | Checks if the value of the left operand is less than or equal to the value of the right operand |
== | Checks if the value of the left operand is equal to the value of the right operand |
!= | Checks if the value of the left operand is not equal than the value of the right operand |
We support the following functions:
Function | Description |
---|---|
IsInGroup(GroupId) | Checks if the user is present in the provided group. Returns a bool. |
HasRank(GroupId, RankId) | Checks if the user has the provided rank in the provided group. Returns a bool. |
GetRank(GroupId) | Gives the rank id of the user in the provided group. Returns a number. |
HasRole(RoleId) | Checks if the user has the provided role in the Discord server. Returns a bool. |
WithString("String") | Checks if the provided string is a substring of the user’s Roblox Username. Returns a bool. Note: The "" are necessary for the code to be valid. |
To view all your custombinds, run the command /custombinds view
.
To modify the code of a custombind, use the /custombinds modify code
command.
To modify the template of a custombind, use the /custombinds modify template
command. Learn more about templates here.
To modify the priority of a custombind, use the /custombinds modify priority
command. Learn more about priority here.
To add additional Discord roles to a custombind, use the /custombinds modify add-roles
command
To remove existing Discord roles from a custombind, use the /custombinds modify remove-roles
command.
To delete a single custombind, run the /custombinds delete
command.
To delete multiple custombinds, run the /custombinds delete
command. The IDs of the binds to be deleted should then be entered as space separated
numbers as shown in the example below.
To create a divisionless bind, we basically have to check whether the user is in the main group and not present in ANY of the subgroups. The psuedocode for this is present below:
IsInGroup(Main Group) and not IsInGroup(Sub Group 1) and not IsInGroup(Sub Group 2) ...
Put as many not IsInGroup(Sub Group N)
as many subgroups you have.