> For the complete documentation index, see [llms.txt](https://docs.luasec.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.luasec.org/getting-started/quickstart.md).

# Quickstart

This takes you from zero to a running, licensed script in about five minutes.

## 1. Sign in

Open the dashboard and sign in with Discord.

<figure><img src="https://2693759722-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYgaUmQ3XhIuFeXi2dUN%2Fuploads%2FSmqmRNBksVCZGeJyxneU%2Fimage.png?alt=media&amp;token=e6f594df-8353-476d-bc32-1b1fb0c69c87" alt="" width="349"><figcaption></figcaption></figure>

## 2. Create a project

A **project** (hub) is the container for your keys, scripts, and loaders.

1. Go to **Projects > Create project**.
2. Give it a name, for example `Fluffy Hub`.

<figure><img src="https://2693759722-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYgaUmQ3XhIuFeXi2dUN%2Fuploads%2FoKsiV2INOQ39lwOgozmM%2Fimage.png?alt=media&amp;token=f296f249-a3c3-41ba-a5e7-d0b7a04ea2e3" alt=""><figcaption></figcaption></figure>

## 3. Add a script and build it

1. Open your project and go to **Scripts > New script**.
2. Paste your Luau source into the build panel and press **Obfuscate & set active**.

Luasec obfuscates the source, bakes in the license guard, and creates a **build** (version). Every rebuild produces a new version. The newest becomes the active build the loader serves.

```lua
-- your source, before Luasec touches it
print("Hello from my script!")
print("Running:", SEC_ScriptName, "v" .. SEC_ScriptVersion)
```

<figure><img src="https://2693759722-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYgaUmQ3XhIuFeXi2dUN%2Fuploads%2FRinPmeCCxeTTcCEd8ux3%2Fimage.png?alt=media&amp;token=c8812375-fac3-4a01-b35a-9ab88cf976dd" alt=""><figcaption></figcaption></figure>

## 4. Mint a key

Keys authorize end users. In your project:

1. Go to **Keys > Mint**.
2. Choose how many, an optional expiry, and an optional note or Discord ID.

Copy the key(s) now. The raw value is shown once.

## 5. Ship the loader

Give your users this snippet, filling in their key:

```lua
script_key = "" --your key here
loadstring(game:HttpGet("https://api.luasec.org/loader/<SCRIPT_ID>"))()
```

You'll find the exact snippet (with your script's ID already filled in) on the script page.

{% hint style="warning" %}
The loader URL is keyed by the **script's** public ID, not the project ID. Copy it from the script page's **Loader** box so you always get the right one.
{% endhint %}

That's it. When a user runs the snippet with a valid, HWID matching key, the server streams the sealed build and it executes.

* Read license data at runtime: [Runtime variables](/protecting-your-script/runtime-variables.md)
* Hide a webhook or secret: [Webhook protection](/protecting-your-script/webhook-protection.md), [SECRET()](broken://pages/IHs3JdfQXluuu3DPQgXL)
* Let users earn a key with ads: [Ad rewards](/licensing/ad-rewards.md)
* Automate whitelisting from Discord: [Discord bot](/discord-bot/setup.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.luasec.org/getting-started/quickstart.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
