Can anyone explain me how the functions Next and In Pairs Mean? The wiki is just too complicated for me.
pairs(table) returns next,table,nil
.
in a for loop, you can use it to loop over each key,value in the given table.
Eg.
local Example = { "Hello"; "World"; "Bye!"; } for _,Value in pairs(Example) do print(Value) end --[[ this would print Hello World Bye! ]]