Why my script doesn't work?
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
Here is my script:
01 | function hasPass(player,id) |
02 | if game:GetService( "GamePassService" ):PlayerHasPass(player,id) then |
11 | game.Players.PlayerAdded:connect( function (player) |
13 | if hasPass(player, 163409880 ) then |
14 | print (player.Name .. " has the GamePass!" ) |
17 | elseif game:GetService( "BadgeService" ):UserHasBadge(p.userId, 93416536 ) then |
18 | print ( "The user has this badge" ) |
21 | print (player.Name .. " doesn't have the GamePass" ) |
this script suppose to give player a badge if he got the gampass