I want to make it so if you have a badge, you get a gear. What's wrong with this!
1 | local BadgeService = Game:GetService( 'BadgeService' ) |
2 |
3 | game.Players.PlayerAdded:connect( function (player) |
4 | if BadgeService:PlayerHasPass(player, BadgeIdObject.Value) then |
5 | repeat wait() until player.StarterGear |
6 | game.Lighting [ "Tester Bike" ] :Clone().Parent = player.StarterGear |
7 | end end ) |
Im not new to scripting but i think you made a mistake and put StarterGear instead of Starterpack