Running Lua scripts from an external loader
Script hubs are where most of the "it does nothing" reports come from, and almost always for the same three reasons: the file is not Lua, the script targets a different API surface, or the game has the wrong place loaded.
Where scripts go
The loader has a script tab with a file picker and a saved-scripts list. Drop .lua and .txt files into the scripts folder next to the executable and they appear in the list after a restart. Nothing is fetched from the internet by the loader itself, so a dead paste site cannot break your setup.
Why a script silently does nothing
- Wrong place. A script written for one game fires only when that game is loaded.
- Wrong API branch. Scripts written for a full internal executor call functions this API does not expose.
- Stale offsets. The script runs, the game ignores the effect.
- Needs an event. Many scripts wait for a GUI button or a chat command before doing anything.
Reading the console
Every error lands in the console tab with a file and line. A script printing attempt to index nil is not broken by the loader — it is looking for a service the current game does not have. Check the console before assuming the build is at fault; nine out of ten reports end there.
Practical order of operations
- Load the game and wait until the world is rendered.
- Open the script tab, pick the file, hit execute.
- Watch the console, not the game — errors appear there first.
- Save the scripts you keep, so a restart does not lose them.
Scripts that need a key check of their own are a separate layer: some hub scripts open a browser tab for a key. The loader itself never asks for one.
FAQ
Can I paste a script instead of using a file?
Yes, the tab has an editor. Files are only more convenient for scripts you reuse.
Are scripts saved between sessions?
Saved scripts are. The temporary editor buffer is not.
Why do some scripts need the console?
To see why they fail. Without a console you are guessing at a nil index.