---
title: "Projects & Scripts"
icon : "key"
description: "Create a project, add a script, and get the loader URL to share with customers."
---

# Projects & Scripts

A **project** is a container for one or more scripts. A **script** is the Lua code you deliver. Most setups use one project per product.

<Steps>

  <Step
    title   ="Open the Projects page"
    image   ="/assets/docs/_usermanual/scriptnproject/1.png"
    imageAlt="Dashboard sidebar with the Projects link highlighted"
  >
    From the dashboard sidebar, click **Projects**.
  </Step>

  <Step
    title   ="Click Add Project"
    image   ="/assets/docs/_usermanual/scriptnproject/2.png"
    imageAlt="Empty Projects page with the Add Project button highlighted"
  >
    A new account starts empty. Click **Add Project** to begin.
  </Step>

  <Step
    title   ="Fill in the project form"
    image   ="/assets/docs/_usermanual/scriptnproject/3.png"
    imageAlt="New Project form with name field and sidebar tabs for advanced settings"
  >
    Give the project a name. The description is optional.

    The sidebar holds tabs for **Script Configuration**, **Webhooks**, and **Halo Functions** — advanced settings you can revisit any time.

    Click **Create Project** when done.
  </Step>

  <Step
    title   ="Your project appears in the list"
    image   ="/assets/docs/_usermanual/scriptnproject/4.png"
    imageAlt="Projects page showing the newly created project as a card"
  >
    The new project shows up as a card, and the Total Projects counter increments.
  </Step>

  <Step
    title   ="Click Add Script"
    image   ="/assets/docs/_usermanual/scriptnproject/5.png"
    imageAlt="Project card with the Add Script button highlighted"
  >
    Every project card has an **Add Script** button on the right.
  </Step>

  <Step
    title   ="Upload your Lua source"
    image   ="/assets/docs/_usermanual/scriptnproject/6.png"
    imageAlt="New Script modal with name, mode toggles, file upload, and Create Script button"
  >
    Name the script, upload your `.lua` file, and pick the modes you want.

    - **FFA Mode** — anyone can run the script without a key. Use for free or public scripts.
    - **Silent Mode** — hides console output on the client. Not recommended; it makes debugging harder.
    - **Heartbeat Connection** — required to monitor or kick sessions in real time from the dashboard.
    - **Fast Mode** — faster load at the cost of some checks. Leave it off until you've confirmed everything works with full protection.

    Click **Create Script** when ready.

    <Info title="What happens after you upload">
      Your source is processed and only the protected output is kept on our servers. The original file is removed once processing completes.
    </Info>
  </Step>

  <Step
    title   ="Download the loader"
    image   ="/assets/docs/_usermanual/scriptnproject/7.png"
    imageAlt="Script row with the actions menu open showing Download Loader"
  >
    Open the `⋯` menu on the script's row and pick **Download Loader**.
  </Step>

</Steps>

## After your first script

To update a script, open its `⋯` menu and pick **Edit Script**. New sessions pick up the new code on their next load. Sessions already running keep their cached copy until shutdown. To force them onto the latest version immediately, use [Sessions → Shutdown](/docs/user-manual/sessions).

## EnvyAuth macros

EnvyAuth exposes `LGS_*` globals you can read directly from your script:

```lua
print("You have run " .. LGS_ScriptName)
print("Current version: " .. LGS_ScriptVersion)
print("Welcome " .. LGS_DiscordUsername .. "!")
print("Your discord ID is " .. LGS_DiscordID)
print("You have " .. LGS_Executions .. " executions")
print("The script has " .. LGS_ScriptExecutions .. " executions in total")
print("Your keynote is " .. LGS_Keynote)
print("Your key has " .. LGS_TimeLeft .. " seconds remaining")
print("Your HWID is " .. LGS_CurrentHWID)
print("Your session id is " .. LGS_SessionID)
print("There are " .. LGS_TotalSessions .. " people using the script")
```

| Macro | Type | Holds |
|---|---|---|
| `LGS_ScriptName` | string | The name you gave the script. |
| `LGS_ScriptVersion` | string | The version field set on the script. |
| `LGS_DiscordUsername` | string | Discord username of the user running the script. |
| `LGS_DiscordID` | string | The user's Discord ID. |
| `LGS_Executions` | number | How many times this user has run the script. |
| `LGS_ScriptExecutions` | number | Total executions across all users. |
| `LGS_Keynote` | string | The note attached to the user's whitelist entry. |
| `LGS_TimeLeft` | number | Seconds left on the user's key. `math.huge` if it never expires. |
| `LGS_CurrentHWID` | string | The user's hardware fingerprint. |
| `LGS_SessionID` | string | The current session's unique ID. |
| `LGS_TotalSessions` | number | How many sessions are running the script right now. |

### Local development

The macros only exist when your script runs through EnvyAuth. Locally every `LGS_*` is `nil`, and reading them throws.

Paste this block at the top of your source file:

```lua
if not LPH_OBFUSCATED then
    script_key           = "RyxPMzKcyMpRkjoMOxYImacYejaasiRj"
    LGS_ScriptName       = "Atomic Hub"
    LGS_ScriptVersion    = "0000"
    LGS_DiscordUsername  = "dev-user"
    LGS_DiscordID        = "1118453649727823974"
    LGS_Executions       = 0
    LGS_ScriptExecutions = 10
    LGS_Keynote          = "Version: Administrator"
    LGS_TimeLeft         = math.huge
    LGS_CurrentHWID      = "DEV_HWID"
    LGS_SessionID        = "DEV_SESSION"
    LGS_TotalSessions    = 1
end
```

`LPH_OBFUSCATED` is only set when running through EnvyAuth, so in production the block is skipped and the real values take over. Edit the placeholder values to test any scenario: an expired key, a fresh account, a banned user.

## Per-project settings

Inside a project you'll see tabs for Scripts, Users, Sessions, Analytics, and Settings. Settings controls:

- **Instance limit** — concurrent sessions per user. Unlimited by default.
- **Account limit** — linked Roblox accounts per user.
- **Webhook** — a Discord webhook URL. EnvyAuth posts to it on events like new executions, HWID resets, and tampering attempts.

Changes apply to new loader calls, not retroactively.

## Next

With a script ready and a loader file downloaded, [whitelist your users](/docs/user-manual/whitelisting).
