> For the complete documentation index, see [llms.txt](https://gamesense-lua.gitbook.io/gamesense-lua.api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gamesense-lua.gitbook.io/gamesense-lua.api/developers/writing-lua-scripts/compiling-lua-scripts.md).

# Compiling lua scripts

**Compiling scripts can give a slight performance boost, although you should be fine without it.**

{% hint style="success" %}
[**Direct unmetered download (https://gamesense.wiki/LuaJIT.7z)**](https://gamesense.wiki/LuaJIT.7z)
{% endhint %}

1. Download the archive and extract it anywhere
2. Copy the script you want to compile into the extracted folder
3. Open command prompt, navigate to that folder

After you successfully extracted it, type the following command:

```
luajit.exe -b script.lua compiled.ljbc
```
