So, what code would I use tp see if a player has a badge?
1 | if --player has badge thingy??? help? |
2 | --my stuff goes here |
3 | end |
If you want to see if a player has a badge then we use the UserHasBadge
method, Example script:
1 | Badge = IDHERE |
2 |
3 | game.Players.PlayerAdded:connect( function (p) |
4 | if game:GetService( "BadgeService" ):UserHasBadge(p.userId, Badge) then |
5 | --code |
6 | end |
7 | end ) |