if char then game.StarterGui:SetCoreGuiEnabled(2,EnableBackpackGui)for M,b in ipairs(char:GetChildren())do if b.className~=""..(Weapon.."")then wait()if db==1 then player.Character.Humanoid:EquipTool(tool)db=2 end end end script.Parent.Unequipped:connect(function()db=1 end)end

if char then
game.StarterGui:SetCoreGuiEnabled(2,EnableBackpackGui)
for i,v in ipairs(char:GetChildren()) do
if v.className ~= ""..Weapon.."" then
wait()
if db == 1 then
player.Character.Humanoid:EquipTool(tool)
db=2
end
end
end
script.Parent.Unequipped:connect(function()
db=1
end)
end