Answers for "roblox get values of tables"

1

roblox get values of tables

local myTable = {"your","my","we","yeet",}

for i, v in pairs(myTable) do
	print("Index: "..tostring(i))
	print("Value: "..tostring(v))
end

-- i stands for Index
-- v stands for Value
-- You can name these variables as you wish, but you should know,-
-- -the first is Index and the second is the Value
--Lua Script language
Posted by: Guest on November-15-2020
1

roblox get index position of tables

local F = {"your","my","we","yeet",}

--> i stands for Index and v for Value,
--> thats why it is a for index and value loop :)
for i, v in pairs(F) do
	print(i,v)
end

--> Lua Script language --
Posted by: Guest on November-10-2020

Browse Popular Code Answers by Language