find index of instance in table roblox code example
Example 1: roblox get index position of tables
local F = {"your","my","we","yeet",}
for i, v in pairs(F) do
print(i)
end
--Lua Script language
Example 2: Roblox get the certain index of a value in roblox
local F = {"Food","Stones","Candy","November",}
for i, v in pairs(F) do
print(tostring(i).." is the index of: "..tostring(v))
end
--Lua Script Language