Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is my data not working? Using tables in Module to Save Data

Asked by 3 years ago
Edited 3 years ago

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 :)

0
It's erroring... cool but what are the errors? It will be easy to fix the problem with them. imKirda 4491 — 3y
0
Edited it, I now included the errors TheBeastMare 3 — 3y

1 answer

Log in to vote
0
Answered by
imKirda 4491 Moderation Voter Community Moderator
3 years ago
Edited 3 years ago

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.

0
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! TheBeastMare 3 — 3y
Ad

Answer this question