Skip to main content

Loader Endpoints

The RedstoneGuard loader is a multi-stage process designed to secure the script and verify the user’s eligibility (key, HWID, bans).

Initialization

The entry point for all scripts. This is the URL used in the loadstring.

GET /loader/[scriptId]/init

Fetches the protected script loader. Response: Returns a Lua script that initializes the secure environment. Usage:
loadstring(game:HttpGet("https://redstoneguard.xyz/api/loader/[scriptId]/init"))()

The Loader

After the client navigates strictly through the loader stages, the final request is made to execute the script.

GET /loader/[scriptId]/execute

Validates the user’s session and returns the final script. Checks Performed:
  1. Key Validation: Checks if the key exists, matches the script, and is not expired.
  2. Global Bans: Checks for bans on HWID, IP, or Roblox User ID.
  3. Country Block: Checks if the user’s IP is in a blocked country.
  4. HWID Binding: Binds the key to the hardware/account on first use.
Response:
  • Success (200): Returns the wrapped Lua script (with MOTD, notifications, and analytics).
  • Error (200): Returns Lua code that prints an error or kicks the player (e.g., kick("Invalid Key")).

Analytics & Webhooks

Upon successful execution, the server:
  1. Logs the execution to the database (execution_logs).
  2. Sends a detailed embed to the configured Discord Webhook (if enabled).
Webhook Fields:
  • User Profile & ID
  • Executor Name
  • Game Information
  • Hardware ID (partial)
  • Key Used