I have a custom Toolbar Gui, that when I remove my tool from my Inventory system, doesn’t remove from the Toolbar. I keep getting an error saying it can’t find the folder, however the folder has clearly loaded in. What am I doing wrong?
Images
Code
for i,v in pairs (Player.Backpack:GetChildren()) and (Player.playerInventory:GetChildren()) do
if v:FindFirstChild('Placement') and v.Placement.Value == ItemNumber then
--print('Destroy',v.Name)
v:Destroy()
if Type == 'Primary' then Player.Character:FindFirstChild("Sheath"):Destroy()
elseif Type == 'Shield' then Player.Character:FindFirstChild("ShieldModel"):Destroy()
end
end
end
end