Loadstring and loaders, explained
Most Roblox scripts for executors are shared as one line:
loadstring(game:HttpGet("https://example.com/script.lua"))()What each part does
game:HttpGet(url)downloads the text at the address. Executors provide it. A normal Roblox game can't call it.loadstring(text)turns that text into a function. Executors provide their own. In a normal Roblox game it only works on the server, and only when the game turns it on.- The last
()runs the function, which is the script.
Why scripts ship as a loader
The line stays the same while the script behind the address changes. When the author uploads a new version, players get it the next time they run the line. Nobody has to copy anything new.
The server behind the address also decides what to send. A key system works this way: the server sends the script only for a key that works, and can send a different build for each tier.
Forge's loader
Each Forge script has one loader line on luarun.com:
loadstring(game:HttpGet("https://luarun.com/s/<script id>"))()Run without a key, it opens a key prompt in the game. It saves a key that works in the executor's forge folder, and deletes it on the next run after the key is revoked or expires.
With Game routing on, a hub has one line of its own that runs the right script for the game the player is in. The loader docs have both lines.
Running a loader line
A loader line runs whatever its server sends, and that can change at any time. Run lines only from authors you trust.