What does this error mean?

’ ServerScriptService.Arena1Script:268: invalid value (table) at index 1 in table for ‘concat’’

print(table.concat(table1, " "))

I’d really appreciate any help, thanks :slight_smile:

1 Like

you need to input an actual item item inside of the “” index. (i can’t explain :sob: )

alternatively, you can check out the documentation for the table functions, if you want a better understanding of the whole table function.

i can’t explain it very well since i haven’t used it correctly so i did try my best.

Can you show us the variable table1’s value? maybe via print(table1). table.concat expects an Array, this is a table with numerical keys starting at 1. The following would be a valid array

local test = {
[1] = "hello",
[2] = "world",
[3] = "!",
}
print(table.concat(test, " ")) --hello world !
1 Like