Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Badge awards gear, what's wrong with this?

Asked by 10 years ago

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)

1 answer

Log in to vote
0
Answered by 10 years ago

Im not new to scripting but i think you made a mistake and put StarterGear instead of Starterpack

Ad

Answer this question