- Clone from the GitHub using the Clone or Download button.
- Make 3 new scripts. Name one
Scan, the otherAdminand the lastAnticheat. Place them all in workspace. - Paste the scripts into the according script (e.g: the code in
admin.luagoes into theAdminscript) - Paste this script into the command bar and hit enter:
game.Workspace.Admin.Parent = game game.Workspace.Anticheat.Parent = game game.Workspace.Scan.Parent = game game.Workspace.Scan.Disabled = true- Download the latest release from https://github.com/carat-ye/cnt/releases
- Extract the release zip.
- Click "Insert" on the menu bar and then click "Insert Model..."
- Choose the
rbxmin the extracted zip and click OK. - You're ready to go!
To add admins, add them into the table in the configuration at the top of script:
local admins = {
["Raymonf"] = 1,
[178] = 1,
}Both user IDs and player names are supported.
Power levels determine the commands the user is allowed to use. You can declare power levels by changing the number after the equal sign of their entry in the admins list.
Power Levels:
- 1: Owner / Finobe staff.
- 2: Administrator
- 3: Temporary Administrator
- 4: Moderator
- 5 and Above: Regular User
Command power levels can be changed using themodifycommand <command> <level>command.
To add banned users, add them into the table in the configuration near the admin table
local banned = {
"dap300",
"billy",
}Like with admins, both user IDs and player names are supported. Make sure to keep the curly brackets! Commas and block quotes are also necessary.
The prefix table is at the top of the script and it looks like this:
local prefixes = { -- Admin prefixes, e.g "<prefix>kill EnergyCell"
":",
";",
"@",
".",
">",
"/",
"$",
"!",
}You can add prefixes the same way you'd add banned users or admins.
Advanced users may want to extend CNT's functionality by adding commands.
To add commands, scroll down to the point in the script which says this:
local commands = {}Commands are written like this:
-- Kills a player.
commands.kill = {}
commands.kill["command"] = function(sender, arguments, targets) -- sender is a Player object, arguments is a string table and targets is a Player table
if NoArguments(arguments) then
return
end
for _, player in pairs(targets) do -- for every player in targets do
if player.Character and player.Character.Humanoid.Health > 0 then -- if players character exists and player is alive
player.Character:BreakJoints() -- kill player
end
end
end
commands.kill["level"] = 4 -- level the command is at, more about levels below
commands.kill["description"] = "Kills a player by breaking their joints." -- description of the command
commands.murder = commands.kill -- alias for the command (not necessary)The above command, when executed using <prefix>kill <player> will kill the player you chose.
Functions are also fully documented in the code for anyone who would like to add more than just commands.
We use SemVer for versioning. To view the versions of CNT available, see the tags on this repository.
- Raymonf - For making Finobe
- dap300 - For being dap300
CNT is available under the GNU Affero General Public License v3.0. See LICENSE for details.