I want to make it so if you have a badge, you get a gear. What's wrong with this!
local BadgeService = Game:GetService('BadgeService')
game.Players.PlayerAdded:connect(function(player)
if BadgeService:PlayerHasPass(player, BadgeIdObject.Value) then
repeat wait() until player.StarterGear
game.Lighting["Tester Bike"]:Clone().Parent = player.StarterGear
end end)
