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

How Admin Commands Mechanics?

Asked by 6 years ago

How do the HD Admin Commands and Khol's Admin Commands work? I was looking through the code and could not find any code that did anything. The only useful script was a settings script that held variables/tables but neither of them had any code for any of the commands. Does anyone know how they work?

2 answers

Log in to vote
1
Answered by
oreoollie 649 Moderation Voter
6 years ago

HD Admin and Khol's Admin do not run their code in the model that is inserted into your game. They use a thing called a ModuleScript. The script that you insert require()s the real code. Requiring it bring it into the game. This is done to simplify the installation process for the user and to hide the code controlling the admin to prevent theft. Before ModuleScripts existed, all the code was in the model from the toolbox.

If my answer helped you to understand, please remember to mark it as correct. If you have anymore questions feel free to comment!

Ad
Log in to vote
0
Answered by 6 years ago

Go to the credits of Kohls Admin Commands and scroll to the right a little. You should see something like "if not _G.Kai then require(id)". Read oreo's answer, too.

0
Nope. Not there in either of the admin models. I went line-by-line the require function is nowhere to be found on either of them fa_QURobloxXD 29 — 6y
0
No, it's there but they hide it horizonatally. Try pressing Ctrl + F and typing "require" in the pop up. oreoollie 649 — 6y

Answer this question