MAS Documentation

Setup Instructions
1. Get your API keys
MAS API key
  1. Log into MAS Admin
  2. Open API Keys (/api_keys)
  3. Create a key with a clear description (e.g. game name)
  4. Copy it immediately (shown once)
  5. Store it only in config.lua / Studio secrets, never in public repos
Roblox API key
  1. Open Creator Dashboard credentials
  2. Create a key with scopes:
    • universe.user-restriction:read
    • universe.user-restriction:write
  3. Copy the key into Config.ROBLOX_API_KEY
2. Register your place
  1. Add the place under Places / Add Place
  2. Confirm Place ID matches the Roblox experience you ban for
  3. 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.