How do you detect if any player in the game has earned a specific badge?

Hi, I just want to know how do I detect if any player in the game earned a specific badge. Like is there an event to do so?

2 Likes

To check if a player has a badge you should use BadgeService:UserHasBadgeAsync().

Example:

local BadgeService = game:GetService("BadgeService")

if BadgeService:UserHasBadgeAsync(UserId, BadgeId) then
    -- Do stuff
end
2 Likes

Alright thanks!

[30lettersbsdfdg]

1 Like

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