Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

2 comments

0

It's erroring... cool but what are the errors? It will be easy to fix the problem with them.

0

Edited it, I now included the errors

1 answer

✓ Accepted answer

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.

1 comment

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!

This discussion is preserved as it was. New answers, comments, and votes are closed.