Yes other dumb question but the int value (wood) won't go into the inventory
here's the script
script.Parent.ClickDetector.MouseClick:Connect(function(player) if(player.Inventory:FindFirstChild("Wood")) then player.Inventory:WaitForChild("Wood").Value = player.Inventory:WaitForChild("Wood").Value +1 elseif (not player.Inventory:FindFirstChild("Wood")) then local wood = Instance.new("IntValue", player) wood.Name = "Wood" wood.Value = 1 end script.Parent.Parent:Destroy() end)
and there's no error in the output
You set the wood's parent to the player, not the Backpack. Also, you're supposed to use "Backpack", not "Inventory." Try this:
script.Parent.ClickDetector.MouseClick:Connect(function(player) if(player.Backpack:FindFirstChild("Wood")) then player.Backpack:WaitForChild("Wood").Value = player.Backpack:WaitForChild("Wood").Value +1 elseif (not player.Backpack:FindFirstChild("Wood")) then local wood = Instance.new("IntValue") wood.Name = "Wood" wood.Value = 1 wood.Parent = player.Backpack end script.Parent.Parent:Destroy() end)