I can't award this badge

I am just trying to make a welcome badge but for some reason this doesn’t work.


Players.PlayerAdded:Connect(function(player)
	if not BadgeService:UserHasBadgeAsync(player.UserId, WelcomeBadge) then
		BadgeService:AwardBadge(player.UserId, WelcomeBadge)
	end
end)

I get no errors. The welcome badge variable is the ID for the badge.

It may be because you already own the badge, make sure you delete the badge from your badge inventory and then try again. If this doesn’t work I’m not sure, sorry!

5 Likes

I assume you are defining “Players” earlier right?

1 Like

Yes of course, Like I said there are no errors

Lol, I didn’t think this would be the issue because on the badge it says no players own it but when I went on my alt it worked.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.