Skip to main content
BAR can automatically assign admin tiers based on Roblox group membership, eliminating the need to maintain manual User ID lists for group-based games. When a player joins, BAR checks their group rank against every entry in the Group Configuration table and grants the corresponding admin level if the conditions are met.

Group Configuration Structure

The Group Configuration table lives inside main_script.lua and contains an array of entries. Each entry defines one rule that maps a group rank (or range of ranks) to a BAR permission level.

Field Reference

number
required
The numeric ID of your Roblox group. You can find this in the URL of your group’s page:
https://www.roblox.com/groups/12345678/group-name
Default: 0 (inactive — see warning below)
number
required
The group rank number to compare against. Roblox group ranks range from 1 to 255. This value is used together with Tolerance Type to determine whether a player’s rank qualifies.
string
required
The comparison operator used to evaluate the player’s rank against Group Rank. See the table below for all valid options.Default: '>='
number
required
The BAR permission level (1–4) to grant when the rule matches. Corresponds to the standard rank tiers: 1 = Moderator, 2 = Admin, 3 = Super Admin, 4 = Game Creator.

Tolerance Type Options


Multiple Group Entries Example

You can add as many entries to the array as you need. Each entry is evaluated independently, so a player can match multiple rules (they will receive the highest applicable level).

Group Configuration entries supplement the manual admin ID lists in Super Admins, Admins, and Mods — they do not replace them. A player can receive admin access through either a User ID entry or a matching group rule, whichever applies. Both sources are checked on join.
Setting Group ID to 0 (the default) does nothing. A Group ID of 0 is a placeholder that BAR ignores. You must replace it with your actual Roblox group ID before group-based rank assignment will work. Leaving the default entry unchanged will not cause errors, but no group rules will be applied.