So… Grow a graden has just reached 16 million players making it the most played game, ever
Congrats to gag for reaching such milestones every other week but this does come with problems and a problem i’ve just been alerted of is the BadgeService going down for a few minutes.
If you are like me and scripted your game expecting the BadgeService to NOT go down then you probably also have seen your game just stop working.
So to prevent this from happening I’ve thrown together a quick module that should stop my game from breaking with the BadgeService.
It’s just a simple pcall but i do have hopes that this works
local Badge = {}
local Service = game:GetService("BadgeService")
function Badge.CheckIfUserHasBadge(UserID, BadgeID)
local Status
local Success, Error = pcall(function()
Status = Service:UserHasBadgeAsync(UserID, BadgeID)
end)
return Status
end
return Badge
If anyone has anaything to add to this please just say