Skip to main content
main_script.lua is the primary configuration file placed in ServerScriptService. It controls who has admin access and how the system behaves. All customization starts here — you define your admin lists, set the command prefix, configure Trello integration, and tune system-wide defaults.

Configuration Table Reference

number
required
The Roblox model asset ID used to load the admin system. Do not change this value. Modifying it will prevent BAR from loading entirely.Default: 9450667008
table
A list of Roblox User IDs granted permission level 3 (Super Admin). Super Admins can use powerful commands such as :admin, :unadmin, :s (script execution), and :sword.Default: {} (empty)
table
A list of Roblox User IDs granted permission level 2 (Admin). Admins can use extended commands such as :ban, :sm, :btools, and :shutdown.Default: {} (empty)
table
A list of Roblox User IDs granted permission level 1 (Moderator). Mods can use basic moderation commands such as :kick, :respawn, :fly, and :speed.Default: {} (empty)
table
A list of Roblox User IDs that are permanently banned from the game. Players on this list are rejected on join with the configured Ban Reason message.Default: {} (empty)
table
Defines automatic rank assignments based on Roblox group membership. See the Group Integration page for full documentation.Default: one entry with Group ID = 0 (inactive)
table
Per-command permission overrides. Allows you to lower or raise the required permission level for specific commands. See the note below for details and an example.
string
The character players must type before a command. For example, with the default prefix :, commands are invoked as :kick PlayerName.Default: ":"
string
The message displayed to a player when they are kicked using the :kick command.Default: "You have been kicked from the server."
string
The message displayed to a player when they are banned using :ban or :pban.Default: "You have been banned from the game."
string
The message displayed to all players when the server is shut down via :shutdown.Default: "This server is shutting down..\nTry joining a different server!"
string
The title string shown in the notification UI when an admin uses the :sm (server message) command.Default: "BAR Server Message"
string
The message shown to non-admin players who attempt to join while the server is locked via :lock.Default: "The server is locked."
boolean
Enables Trello integration for managing admin lists and ban lists via a Trello board. Requires HttpService to be enabled in your game settings. Set Trello Board, Trello App Key, and Trello Token when enabling.Default: false
string
Your Trello board ID. Only used when Trello is true.Default: "" (empty)
string
Your private Trello application key. Only used when Trello is true. Keep this value secret.Default: "" (empty)
string
Your private Trello token. Only used when Trello is true. Keep this value secret.Default: "" (empty)
boolean
When true, allows the game creator to view debug information that may help diagnose issues with the admin system.Default: true
boolean
When true, players who have purchased an admin donation receive special perks such as the ability to equip capes and hats.Default: true
boolean
When true, players who are not admins can still use :cmds to view the command list, and !clean to clean their own tools.Default: false
boolean
When true, hats and gear that have been given via admin commands are automatically cleaned up periodically.Default: true
Color3
The accent color used throughout the admin system’s GUI elements.Default: Color3.new(0, 0, 0) (black)
Instance
The Roblox service or folder that the :tools and :give commands pull tools from.Default: game.ServerStorage
boolean
When true, certain high-impact commands (such as :ban all or :pban all) require an additional confirmation step before executing, reducing the risk of accidental use.Default: true
string
The key under which all persistent data — including ban records and cape data — is stored in Roblox DataStores.Default: "BAR"

Full Configuration Table

The following is the complete Configuration table as it appears in main_script.lua:

Changing Datastore Key will wipe all persistent data. All ban records, cape data, and any other information stored under the previous key will become inaccessible. Only change this value during initial setup before any data has been saved, or if you intentionally want to start fresh.
Command Configuration allows you to override the required permission level for individual commands. In the default configuration, fly and unfly are both set to permission level 1 (Moderator), meaning Mods can use them even though they might otherwise require a higher level. You can add any command name as a key and set its Permission value to any level from 0 to 4.