Need help with resolving an error

Need help to resolve this error:

Here is the whole script:

It’s a module script for my system.

Any idea on what the problem might be?

Based on the code you provided, it means that _table is a string value when it should be a table. How are you calling the function?

You are passing string in the method. Try printing the table to see what is it.

How can I do that? I am new to advanced scripting and I don’t know much.

…Printing out _table before the assert does not require high coding skills.

I tried that but it doesn’t print anything. So that means that it’s nil? What do I do?

You are calling your function improperly then. I don’t know why it doesn’t pring anything out, can you send the code with print?

1 Like