How to check if index of a table is a string?
So for example, how to check if the index 1 of table "InvTable" is a string "Iron Ore"?
EDIT:
if player.Smelting.Value == true then
if getIndex(invtab, "Copper Ore") == true then
local copper = getIndex(invtab, "Copper Ore")
table.remove(invtab, copper)
CheckForEmptyBox()
local numb = selectedbox.Numb
table.insert(invtab, numb.Value, "Copper Ingot")
player.Smelting.Value = false
player.Smeltwhat.Value = ""
else print("Nope")
end
this is the code im trying to use. It prints "Nope", even though im sure there is a value "Copper Ore" in the invtab table. What am i doing wrong?
No errors btw.

1 comment
Updated my post.