Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to see if a player has a badge?

So, what code would I use tp see if a player has a badge?

if --player has badge thingy??? help?
	--my stuff goes here
end

1 answer

✓ Accepted answer

If you want to see if a player has a badge then we use the UserHasBadge method, Example script:


Badge=IDHERE
 
game.Players.PlayerAdded:connect(function(p)
    if game:GetService("BadgeService"):UserHasBadge(p.userId, Badge) then
        --code
    end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.