if player.Character:FindFirstChild(itemName) then
player.Character:FindFirstChild(itemName):Destroy()
end
--OR
if player.Character:FindFirstChild(itemName) ~= nil then
player.Character:FindFirstChild(itemName):Destroy()
end
If the thing is 'nil' ignore the code but instead it errors and the whole script breaks. both variants of this script breaks. how do i have the server only run the code if it isn't nil. And without using 'else' because else what? i dont want to put
else warn("no item")
``` because the code is within a for loop checking for 100 different items and that's 99 warns i dont want filling up the output