A secure, modern key verification system for Roblox script hubs. Users must obtain a valid key from the website before accessing any script features.
BlueLock/
βββ .gitignore
βββ README.md
β
βββ web/ # Backend API + Key Website
β βββ server.js # Express.js API server
β βββ package.json
β βββ public/
β βββ index.html # Key generation website
β βββ style.css # Dark theme stylesheet
β βββ script.js # Frontend logic
β
βββ roblox/ # Roblox Lua Scripts
βββ init.lua # Entry point / loader
βββ KeyUI.lua # Animated key input UI
βββ KeyVerifier.lua # Remote verification module
βββ ScriptHub.lua # Script hub (unlocked after key)
cd web
npm install
node server.js
Server runs at http://localhost:3000
Deploy the web/ folder to any Node.js hosting:
Update the URLs in roblox/init.lua:
local Config = {
API_URL = "https://your-api-url.com",
KEY_WEBSITE = "https://your-api-url.com",
}
User runs script
β
βΌ
ββββββββββββββββ
β Key UI β β Modern animated interface
β appears β
ββββββββ¬ββββββββ
β
ββββββ΄βββββ
β Has key? β
ββββββ¬βββββ
β No
βΌ
ββββββββββββββββ ββββββββββββββββ
β "Get Key" ββββββββΆβ Key Website β
β button β β generates β
ββββββββββββββββ β BLUE-XXXX... β
β ββββββββββββββββ
β Yes
βΌ
ββββββββββββββββ
β POST /verify ββββββββΆ API validates
ββββββββ¬ββββββββ
β
ββββββ΄βββββ
β Valid? β
ββββββ¬βββββ
β β
Yes No
β β
βΌ βΌ
Hub Shake +
Opens Error
| Endpoint | Method | Description |
|---|---|---|
/api/key/generate |
POST |
Generate a new key |
/api/key/verify |
POST |
Verify a key |
/api/key/info/:key |
GET |
Get key metadata |
/api/stats |
GET |
Key store statistics |
/api/health |
GET |
Health check |
Edit KEY_CONFIG in server.js:
const KEY_CONFIG = {
expirationMs: 24 * 60 * 60 * 1000, // 24 hours
maxUses: 1, // single-use
prefix: 'BLUE', // key prefix
};
MIT License β feel free to use and modify.