Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local BadgeService = game:GetService("BadgeService")
- local function awardBadge(player, badgeId)
- -- check badge can be awarded
- if BadgeService:IsLegal(badgeId) and not BadgeService:IsDisabled(badgeId) then
- -- award badge
- BadgeService:AwardBadge(player.UserId, badgeId)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement