What lines would I use to say if a player has a badge then etc... What would the lines be to check if a player owns a badge so then I can use that in an If statement.
1 | BadgeId = IDHERE |
2 |
3 | game.Players.PlayerAdded:connect( function (p) |
4 | if game:GetService( "BadgeService" ):UserHasBadge(p.userId, BadgeId) then |
5 | print ( "The user has this badge" ) |
6 | else |
7 | print ( "The user does not have this badge" ) |
8 | end |
9 | end ) |