It's not working, may someone help me fix it?
local gear = Game.Lighting.flag
local GamePassId = 163409880 -- This is the right gamepass id
Game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function()
if Player.StarterGear.flag ~= true then
local gearClone = gear:clone()
gearClone.Parent = Player.StarterGear
wait(0.1)
local gearClone2 = gear:clone()
gearClone2.Parent = Player.Backpack
print("Success")
end
end)
end)

2 comments
Edited, you shouldn't need that line to tell if you have the flag in your inventory or not, since you respawned with a new set of tools.
Thank you very much!