Badge awards gear, what's wrong with this?
I want to make it so if you have a badge, you get a gear. What's wrong with this! It all checks out in my knowledge so I have no idea...
1 | local BadgeService = Game:GetService( 'BadgeService' ) |
3 | game.Players.PlayerAdded:connect( function (player) |
4 | if BadgeService:UserHasBadge(player.userId, 158464344 ) then |
5 | repeat wait() until player.StarterGear |
6 | game.Lighting [ "TesterBike" ] :Clone().Parent = player.StarterGear |
There's an IntValue named GamePassId as a child to this.
There is also an asset loader with IntValue's of the awardable gear.