I Can’t Add This Value To A Table

So, I have a problem with tables (again) I’m trying to add a value to a table which is empty, but there a problem, the second value needs to be a number form what I understand, but it will not let me add the value, here’s the relevant code:

table.Insert(levels, 1, level)

To add the value

local levels = {
}

The table, if you need anything more just ask

The error:

attempt to call a nil value

You capitalized the function name. table.insert is all lowercase.

1 Like

Oh my gosh, I just feel so stupid…
Thanks for answering it works fine now

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.