Am I checking for the badge correctly?
01 | local pointgiver = script.Parent |
02 | local BadgeId = 167370291 |
04 | pointgiver.Touched:connect( function (pointgiver) |
05 | local g = game.Players:GetPlayerFromCharacter(pointgiver.Parent) |
06 | if game:GetService( "BadgeService" ):UserHasBadge(g.userId, BadgeId) then |
08 | elseif pointgiver:IsA( "Part" ) and (g) then |
09 | pps = game:GetService( "PointsService" ) |
10 | if pps:GetAwardablePoints() > = 50 then |
11 | pps:AwardPoints(g.userId, 50 ) |
Should this be functioning correctly?
It doesn't seem to be :/