MAS Documentation
Table of Contents
Setup Instructions
1. Get your API keys
MAS API key
- Log into MAS Admin
- Open API Keys (
/api_keys) - Create a key with a clear description (e.g. game name)
- Copy it immediately (shown once)
- Store it only in
config.lua/ Studio secrets, never in public repos
Roblox API key
- Open Creator Dashboard credentials
- Create a key with scopes:
universe.user-restriction:readuniverse.user-restriction:write
- Copy the key into
Config.ROBLOX_API_KEY
2. Register your place
- Add the place under Places / Add Place
- Confirm Place ID matches the Roblox experience you ban for
- Keep the place Active so bans are processed
3. Configure WebhookService
In scripts/config.lua (or your module Config):
Config.API_KEY = "your_actual_mas_api_key_here"
Config.ROBLOX_API_KEY = "your_actual_roblox_api_key_here"
Config.WEBHOOK_URL = "your_discord_webhook_url_here"
-- Feature toggles
Config.ENABLE_ROBLOX_BAN_API = true
Config.ENABLE_ALT_ACCOUNT_DETECTION = true
Config.ENABLE_MAS_BAN_SYSTEM = true
Config.ENABLE_AUTO_UNBAN_SYNC = true
Config.DEBUG_MODE = false
4. Optional: server offline clear
For Live Moderation, servers can call modcall_clear on BindToClose
so pending ModCalls are cleared when the job shuts down. Requires API enabled and a valid MAS API key in the server script.