Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make an admin commands script?

Asked by 6 years ago
Edited 6 years ago

I want to add /fly, /ban (reason), /kick (reason), /tp, /kill, /msg, /servermsg, and /admin /mod /coowner, but I have no idea how to script!

2 answers

Log in to vote
0
Answered by 6 years ago

Hello! Before I go and write out code for this, I would recommend you search "admin commands" in your tool box. Upon acquiring one, you have the ability to read the script. Most of the scripts that you see have 1000+ lines so using control f you can find the command you are looking for. Once you do this study the code, try to figure out what it is doing and then try to replicate it your self.

If you are having difficulty with this task let me know and Ill do my best to help you.

Re-guarding your "I have no idea how to script," Learning Lua is as easy as learning how to cook. It may be stressful at first, but with every problem there is a solution. Roblox provides a great set of instructions in teaching you the bases of Lua.

Always remember, you can do anything you put your mind to.

-Tritous

Ad
Log in to vote
0
Answered by 6 years ago

Since this is site is NOT A REQUEST site. I will write how YOU can write it your own.

We will roughly outline what we need to do. Planning it first before writing code saves you hair.

  1. Parsing data. - This includes getting the base command, who said it, and which player it will inflict on.
  2. Authority Checking - Check weather the user can example /kill or /admin someone. If they can. Moves on to the next.
  3. Execution - Finally executes the code. Maybe it is /kick, simply boots them off to the server.

Now that is out of the way, you can get to knowing how to scripting it.

(Got lazy. Just going to give you a link) http://wiki.roblox.com/index.php?title=Chat_commands

Answer this question