Badges: five free a day, and the check the official example makes before awarding
A badge is an award that stays in the player's inventory forever. There are five free every 24 hours per game, and the official awarding example checks whether the badge is enabled before trying to give it.
Produced with AI from the sources cited below and checked by automated verification against those same sources. After it was published, the editor read the full text. · Reviewed by Gustavo Cantino, 11/24/26 Editorial Policy

A badge is one of the few things your game can give a player that leaves your game. It sits in that person's inventory, on their profile, visible to anyone who looks — long after they stopped playing.
That changes what is worth rewarding. And there is a daily quota that changes the rhythm at which you can create them.
The problem
The definition: a badge is a special award you give the player when they meet an objective inside the game. The official examples are completing a difficult objective or playing for a certain amount of time.
And its destination is what makes it different from any other reward: as soon as the player receives it, the badge appears in the badges category of their inventory. It is not an item in your game — it is a permanent record on that person's account.
The quota matters for planning: you can create up to 5 badges free every 24 hours per game. Past that limit in the window, each additional badge costs 100 Robux.
In practice, that means a game with twenty badges takes four days to configure for free — or costs Robux to have them all the same day. It is the kind of restriction that does not bother anyone who plans and irritates anyone who discovers it the night before launch.
Step by step
1. Create the badge. In the dashboard, in the game thumbnail's menu, the option to create a badge. On the creation page, upload the image that will be the icon.
The image specification has a detail that costs rework: the recommendation is a 512 by 512 pixel template, and the upload crops the image into a circular icon. Important detail cannot sit outside the circle — which rules out badges with text around the edges, the most natural design for anyone making the icon in a square.
2. Fill in the fields. Name, description and the enabled state.
The description deserves attention because it has a job: it should say what the player can do to earn the badge. It is not flavour text — it is the instruction shown to whoever does not have it yet.
3. Decide on the state. A disabled badge does not appear in the badges section of the game's page and cannot be earned by players.
That is useful on purpose: you can create everything in advance, leave it disabled, and switch it on on the day. The player does not see a badge that cannot yet be earned.
4. Order them. A newly created badge goes to the end of the list, and you can reorder up to 50 at a time through the drag interface. The order appears on the game's page, so it is worth putting the easy ones first — they are the invitation.
5. Take the id. It comes from the thumbnail's context menu, under Copy Asset ID.
6. Award it from a script. The common flows are three: awarding a badge, checking whether the player already earned it, and getting information about the badge.
Awarding is through BadgeService's AwardBadgeAsync, in a Script on the server side. The ownership check is through UserHasBadgeAsync.
Why the quota exists, and how to work with it. Five a day is not an arbitrary number: a badge is a permanent record on someone else's account, and the platform has an interest in that not becoming spam. Creating a hundred badges at once would be possible if there were no cost, and the Roblox badge catalogue would be much worse for it.
For anyone producing, the practical consequence is planning in batches. One batch of five a day, starting a few days before launch, covers most games without spending anything. And since a disabled badge neither appears nor can be earned, you can create everything in advance and switch it on on the day — players see them all appear at once, with no idea they were created over the course of a week.
The artifact
The module below implements the three calls in the right order, with two caching layers the naive version does not have.
The first holds the badge's state: it does not change during the session, so querying once is enough. The second holds who already has the badge, per session — without it, an award inside a loop queries the network on every pass.
And there is a type detail worth copying: when the query fails, the function returns nil, not false. They are different things — false is "the badge is disabled", nil is "the query failed". In both cases you do not award, but only the second deserves a warning in the log.
One further care applies to the image. Since the upload crops it into a circle and the icon appears small on the game's page and in the inventory, what works there is a silhouette and a strong colour, not a detailed illustration. A beautiful, detail-filled drawing becomes a smudge at the size it is actually seen — and that size is the only version that exists, because the crop is permanent.
Common mistakes
Awarding without checking whether it is enabled. The example the documentation presents as a safe award function does something the naive version does not: it calls GetBadgeInfoAsync first, and checks IsEnabled — the property confirming whether the badge can be awarded.
Why that matters: enabling and disabling is done through the configuration form in the dashboard, outside the code. Somebody can disable a badge while the game is live, and your script would keep trying to award it, spending network calls for nothing.
Not using pcall. All three calls are network calls. Without pcall, a momentary instability brings the whole script down — and the script that awards badges is usually in the middle of the end-of-match logic.
Awarding on the client. The documentation specifies a server-side Script. Awarding is authority, and authority does not live on the client.
Not checking ownership first. Awarding a badge the player already has causes no harm, and costs a network call per attempt. In a game that checks achievements every match, that becomes a large number of useless calls.
An id loose in the middle of the code. Badges are one of the things most often recreated — the design was not good, the name was wrong, somebody deleted it by accident. Each recreation generates a new id, and an id scattered across five scripts is a fix you forget in one of them.
Rewarding presence instead of achievement. It is not a technical mistake, it is a design one. Since the badge sits on the player's profile, it has display value — and a badge everybody has displays nothing. The examples the documentation gives are "a difficult objective" and "play time", and the difference between them is large: the first is a story, the second is a clock.
It is also worth thinking about what the badge communicates to whoever does not play yet. Since it appears on the game's page with a name and a description, the badge list works as an index of what there is to do there — often it is the most concrete thing a visitor reads before deciding to join. Vague descriptions waste that space; descriptions saying what is hard about the game sell the game.
Creating badges on launch day. The quota is per 24-hour window, and launch day is precisely the day nobody has spare time. Anyone leaving it to the night before discovers the limit at the worst moment, and the alternative is paying per badge or launching with half of them.
Next step
The design exercise before any code: list the five hardest things somebody can do in your game. Not the longest — the hardest.
That list is your first batch of badges, and it fits in one day's free quota. If the list is too short for five, that is also a finding: a game without five difficult achievements is a game where there is not much to master.
After that, it is worth thinking about the order. Since the list appears on the game's page and a newly created badge goes to the end, the default order is chronological — which is the worst of all for a newcomer. An easy badge at the top invites; an impossible one at the top drives people away.
And keep in mind the batch ownership check the documentation mentions: for a game with many badges, checking them one by one when the player joins is slow, and there is a better route.
Sources
- Badges | Documentation - Roblox Creator Hub — checked on
Ready-to-use artifact
-- ServerScriptService: awarding badges.
--
-- BadgeService's three calls and what each one is for:
--
-- GetBadgeInfoAsync -> does the badge EXIST and is it ENABLED?
-- UserHasBadgeAsync -> does this player ALREADY have it?
-- AwardBadgeAsync -> award it
--
-- All three are network calls and can fail. All in pcall, always.
local BadgeService = game:GetService("BadgeService")
local Players = game:GetService("Players")
local Badges = {}
-- The game's badges, in one place. An id loose in the middle of the code
-- is an id nobody finds when the badge is recreated.
local ID = {
firstWin = 0,
hundredMatches = 0,
mapSecret = 0,
}
-- The badge's state does not change during the session: caching avoids a
-- network call per award.
local info = {}
local function enabled(badgeId)
if info[badgeId] ~= nil then
return info[badgeId]
end
local ok, data = pcall(function()
return BadgeService:GetBadgeInfoAsync(badgeId)
end)
if not ok then
warn("failed to read badge " .. badgeId .. ": " .. tostring(data))
return nil -- nil = the query failed. Different from false.
end
info[badgeId] = data.IsEnabled
return data.IsEnabled
end
-- Ownership cache PER SESSION. Without it, a badge awarded inside a loop
-- queries the network on every pass.
local alreadyHas = {}
function Badges.owns(player, badgeId)
alreadyHas[player] = alreadyHas[player] or {}
if alreadyHas[player][badgeId] ~= nil then
return alreadyHas[player][badgeId]
end
local ok, has = pcall(function()
return BadgeService:UserHasBadgeAsync(player.UserId, badgeId)
end)
if not ok then
return nil
end
alreadyHas[player][badgeId] = has
return has
end
function Badges.award(player, name)
local badgeId = ID[name]
if not badgeId or badgeId == 0 then
warn("badge with no id configured: " .. tostring(name))
return false
end
if enabled(badgeId) ~= true then
-- disabled OR the query failed: in both cases, do not try
return false
end
if Badges.owns(player, badgeId) == true then
return false -- already has it: do not spend a call
end
local ok, err = pcall(BadgeService.AwardBadgeAsync, BadgeService, player.UserId, badgeId)
if not ok then
warn("error awarding badge: " .. tostring(err))
return false
end
alreadyHas[player] = alreadyHas[player] or {}
alreadyHas[player][badgeId] = true
return true
end
Players.PlayerRemoving:Connect(function(player)
alreadyHas[player] = nil
end)
return Badges


