if Counter.Text ~= "0" then
Counter.Text = tostring(tonumber(script.Parent.Loot.Inventory.InventoryScroll:FindFirstChild(v.Name).Counter.Text) + 1)
else
It gives me this error:
Players.Player1.PlayerGui.CoreGUI.Core:102: attempt to perform arithmetic on a nil value

1 comment
We may need the whole script.