I'm using tables in Modules to store my data and save my data, the data is nil. Anyone know why?
Solved! Thanks for your help :)
I'm using tables in Modules to store my data and save my data, the data is nil. Anyone know why?
Solved! Thanks for your help :)
You are setting the metatable right and then trying to use functions with : but didn't you forget to set
MetaData.__index = MetaData
Because these functions are not members of the Data table so the __index then fires and looks for the function in MetaData table.
Omg! I forgot all about including that after MetaData, thank you! The data script is still broke. I'll try fix it, if I need further help ill edit this post. Thank you for your help!
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
It's erroring... cool but what are the errors? It will be easy to fix the problem with them.
Edited it, I now included the errors