Simple Admin (MAKE YOUR OWN COMMANDS)
Views: 45.5KExecutions: 696

Simple Admin (MAKE YOUR OWN COMMANDS)

  • Keyless
  • Mobile friendly

Advertisement

About this script

Here how to add a custom command:

WARNING: SCRIPT TRUNCATED make sure to click "raw" and copy the whole script

-- Define your custom command function

local function myCustomCommand(args)

-- Example: simply print a message

print("This is a custom command!")

-- You can also do things like show a message on the CommandBar:

-- CommandBar.Text = "Custom command executed!"

end

-- Register your custom command with the system

RegisterCommand("mycommand", myCustomCommand)

-- ==========================

-- How to add your command to the command list in the description:

-- ==========================

-- Add a line like this to your commands list:

-- mycommand - description of what your command does

--

-- Example:

-- mycommand - shows a custom message in the output