Badge Giving script - Something went wrong with the request, see response status code

I get the error stated in the title in studio when this is running. Why is this happening?

local badgeService = game:GetService("BadgeService")

local egg1 = 2124593996
local egg10 = 2124593997
local egg1k = 2124593998
local egg5k = 2124593999
local egg50k = 2124594000

game.Players.PlayerAdded:Connect(function(plr)
	while wait(5) do
		
		if plr:WaitForChild("leaderstats"):FindFirstChild("Eggs Opened").Value >= 1 then
			if not badgeService:UserHasBadgeAsync(plr.UserId, egg1) then
				badgeService:AwardBadge(plr.UserId, egg1)
			end
		end
		
		if plr:WaitForChild("leaderstats"):FindFirstChild("Eggs Opened").Value >= 10 then
			if not badgeService:UserHasBadgeAsync(plr.UserId, egg10) then
				badgeService:AwardBadge(plr.UserId, egg10)
			end
		end
		
		if plr:WaitForChild("leaderstats"):FindFirstChild("Eggs Opened").Value >= 1000 then
			if not badgeService:UserHasBadgeAsync(plr.UserId, egg1k) then
				badgeService:AwardBadge(plr.UserId, egg1k)
			end
		end	
		
		if plr:WaitForChild("leaderstats"):FindFirstChild("Eggs Opened").Value >= 5000 then
			if not badgeService:UserHasBadgeAsync(plr.UserId, egg5k) then
				badgeService:AwardBadge(plr.UserId, egg5k)
			end
		end		
		
		if plr:WaitForChild("leaderstats"):FindFirstChild("Eggs Opened").Value >= 50000 then
			if not badgeService:UserHasBadgeAsync(plr.UserId, egg50k) then
				badgeService:AwardBadge(plr.UserId, egg50k)
			end
		end	
	end
end)
1 Like

I believe there is a problem with badge awarding at the moment. I am getting 503 errors on badge awarding scripts in my games

1 Like

Okay i did think this could be a possibility, as it was working fine before ( Well i didnt notice an error yesterday )

1 Like

Yeah, It completely killed my game and I’m pretty upset about it. That’s how I noticed it.

2 Likes

Same here, Badge Service seems to be down at the moment.

2 Likes