Horje
for i in pairs lua 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
how to remove characters from a string in lua Code Example how to remove characters from a string in lua Code Example
lua multiline comment Code Example lua multiline comment Code Example
repeating loop roblox Code Example repeating loop roblox Code Example
when button is clicked roblox lua Code Example when button is clicked roblox lua Code Example
lua How to remove index from table Code Example lua How to remove index from table Code Example

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