CommandLine+
What is this Plugin?
This plugin allows you to run custom commands in the Roblox command bar with the “–” prefix. These commands can help you improve your scripting workflow significantly, and can also be customized to your liking.
Defining Custom Commands
Commands are prefixed by the characters --
. In order to define custom commands, you must create a module script under the “Main” script. The name of the modulescript instance will also be the name of the command. If you have a modulescript named “s”, then that modulescript’s execute function will be called when the --s
is typed into the command line. You also have the optional ability to add a “description” property to the command. If you choose to do this, the description will be printed out when --help
is called.
Example module:
--move to start
local function toStart(activeScript: ScriptDocument)
if activeScript == nil then return end
activeScript:ForceSetSelectionAsync(1, 1)
end
return {
execute = toStart,
description = "Move to the first line of the script editor."
}
All commands must take the “activeScript” argument, all arguments passed in by the user should be specified after this first argument. The example above will create a command called “–m” and it will move the script editor to the start of line 1.
Model Distribution:
Commandline+.rbxm (7.8 KB)
Plugin Distribution:
Rate the Plugin:
- 5
- 4
- 3
- 2
- 1
0 voters