local arr = {
[somethinginanarray] = nil
}
-- This is basically what the table would change to if you were to do what you said and do:
function Hello(somethinginarray)
arr[somethinginarray]
end
Hello(somethinginanarray)
It turns the table into a dictionary, which stores a “key” called “somethinginanarray”. By default unless you store something in the key like so:
local arr = {
[somethinginanarray] = "I'm something"--stores a string within the key
}
the key will store nothing, therefore resulting in the: