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

Why does this no longer work,it has always worked before?

1 answer

You can't get the length of a dictionary, only an array with ascending numbers as index's.

local Array = {}

for i = 1, 3 do
	Array[i] = 'hi'
end

print(#Array)

OUTPUT:

3

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