Horje
lua in pairs Code Example
lua in pairs
--Table is the table to iterate through
--Index is the current index
--Value is the value at the current index

for index, value in pairs(table) do

end
for i in pairs lua
local table =  {2,3,12, "Hello"} --a simple array
for i, item in pairs(table) do -- for i in pairs loop goes through all the items in an array/table
	print(item)
end




10

Related
lua string to number Code Example lua string to number Code Example
loop true childs roblox Code Example loop true childs roblox Code Example
how to get the length of a table in lua Code Example how to get the length of a table in lua Code Example
lua round number Code Example lua round number Code Example
how to make a part rotate roblox Code Example how to make a part rotate roblox Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9