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...
local BadgeService = Game:GetService('BadgeService') game.Players.PlayerAdded:connect(function(player) if BadgeService:UserHasBadge(player.userId, 158464344) then repeat wait() until player.StarterGear game.Lighting["TesterBike"]:Clone().Parent = player.StarterGear end end)
There's an IntValue named GamePassId as a child to this. There is also an asset loader with IntValue's of the awardable gear.
The function you call to check if the player has the badge is using PlayerHasPass
which doesn't exist in the BadgeService, you need to use UserHasBadge.
Change line 4 to:
if BadgeService:UserHasBadge(player.userId, BadgeIdObject.Value) then