/cnt

Carrot & Niall's Toolkit - Server essentials for Finobe places.

Primary LanguageLuaGNU Affero General Public License v3.0AGPL-3.0

cnt

Carrot & Niall's Toolkit

Server essentials for Finobe places.

Installation

Downloading from Source

  • Clone from the GitHub using the Clone or Download button.
  • Make 3 new scripts. Name one Scan, the other Admin and the last Anticheat. Place them all in workspace.
  • Paste the scripts into the according script (e.g: the code in admin.lua goes into the Admin script)
  • 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

Downloading from Release

  • 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 rbxm in the extracted zip and click OK.
  • You're ready to go!

Usage

Adding Admins

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

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 the modifycommand <command> <level> command.

Adding Banned Users

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.

Adding / Removing Prefixes

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.

Adding Commands

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.

Authors

Versioning

We use SemVer for versioning. To view the versions of CNT available, see the tags on this repository.

Built With

  • Atom - For making code
  • Teletype - Tool used for team collaboration

Acknowledgements

  • Raymonf - For making Finobe
  • dap300 - For being dap300

License

CNT is available under the GNU Affero General Public License v3.0. See LICENSE for details.