I am having an issue with my Inventory system where my Shield does not remove when it’s unequipped or if a new shield is equipped. Since I have so many different shields in my game I tried doing a list but it still didn’t seem to work. Does anyone know what I am doing wrong?
2 Likes
Are you aware that :FindFirstChild(#shieldList) is looking for the number of shields as a name
What your code is doing
Player.Character[31]:Destroy() --//What its going to do
--// What i suspect will happen below
Player.Character[31] --// Probs isn't found and errors (unless name == #sheildList)
1 Like
Oh I see. How do I fix this then.
Fix it to find out if it’s a shield or not you can add things to check not sure how you want to go about it tbh could try to loop thru the character and use table.find to find if shield exists. Or before putting shield you would name it via attribute or string value within it
so its easier to find
1 Like