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?
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!
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.