i made a script for a badge in a game (its in a group) but it doesnt work.
local id = 2124471217 game.Players.PlayerAdded:Connect(function(plr) wait(1) local bs = game:GetService("BadgeService") bs:AwardBadge(plr.UserId,id) end)
The problem is probably that you are trying to be awarded it in studio, or the fact that if you made it, you would already have it in your inventory. Try deleting it from your inventory and test it in the real game.
I have tested it (the script below) and it does print "Awarded Badge".
local id = 2124471217 game.Players.PlayerAdded:Connect(function(plr) wait(1) local bs = game:GetService("BadgeService") bs:AwardBadge(plr.UserId,id) print("Awarded Badge") end)