Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to list things?

I'm forgetting this again, How do I iterate over tables (without keys) again?

1 answer

Is this what you are referring to?

local test = {1,2,3,4} -- Table with random numbers

for i, v in pairs(test) do -- using a loop to iterate over each value in the table
print(i) -- printing each value out in the output
end

This discussion is preserved as it was. New answers, comments, and votes are closed.