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

1 comment
You're parenting the IntValue to the player not the inventory.