# Compiling lua scripts

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

{% hint style="success" %}
[**Download from MEGA**](https://mega.nz/#!JpFAhYjb!35AbAx8sGdmVAI3o-EVHtGA_-Y1WqReo7WWUWHOdYo4)
{% 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gamesensical.gitbook.io/docs/developers/development/compiling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
