Lua scripting

Lua scripting is how we can explore and modify the game, most mods need some form Lua scripting to run or to be implemented into the game.

So what is Lua anyway?
Lua is a lightweight scripting language used in many systems and games.

Several systems in Homebrew are implemented in Lua including a majority of the V15 builder and the user gadgets (the spawner, teleporter, and binoculars), Lua can also be used to mod the game or add your own gadgets.

Homebrew is powered by the Unity game engine, and uses SLua for Lua implementation.

How to run Lua in Homebrew
Lua can be run from a variety of places in different ways within Homebrew, let's take a look at a few.
 * As a gadget. Gadgets are written in Lua, which is launched when the player selects the gadget from their toolbar. Gadget Lua files are stored in the GadgetLua folder, in the user Lua folder.
 * As a Lua mod. Lua mods in this context refer to Lua scripts that are launched as soon as the game starts and run all the time while the game is open. Lua mods are stored in the ModLua folder, in the user Lua folder.
 * As a builder mod. Builder mods only run while the builder is open, they're very useful for implementing custom builder tools or functionality.
 * Directly in chat or in the console. You can run Lua code directly in the chat box (preceding any code with / ) or in the console by either typing lua directly or by having valid code in your clipboard, which is very useful for running simple scripts, debugging, or testing.