I have this gear which gives the person a gear if they have a badge:
badgeid = 468156809 -- id of badge needed
toolstorage = game.ServerStorage -- where to store the gear(s)
tools = {"[G] Alpha"} -- names of the tools (you can put as many as you want)
game.Workspace.ChildAdded:connect(function(c)
if game.Players:GetPlayerFromCharacter(c) then
p = game.Players:GetPlayerFromCharacter(c)
else
return
end
if game:GetService("BadgeService"):UserHasBadge(p.userId, badgeid) then
for i,v in pairs(tools) do
local clone = toolstorage:WaitForChild(v):Clone()
clone.Parent = p.Backpack
end
end
end)
I was wondering how to change this to make it so the user can only obtain the gear ONCE, even if they rejoin the game, since gears will save when they leave.

3 comments
How are you saving the players gear ?
It's a script by https://scriptinghelpers.org/user/Goulstem
Don't just copy and paste scripts and ask us to add stuff to them. Please attempt the problem yourself first.