Should I keep specific Data in ModuleScripts?

Another one of my Random Questions that may, or may not help people.

So lets say I have a Folder Containing a bunch of ValueBase Instances (ObjectValue StringValue, etc) inside it, they are there to control specific aspects of the game and when they change, stuff happens, but would it be a good idea to keep them as Data inside of a ModuleScript? and have them fire an Event when something changes inside of them? (maybe a metatable using the __newindex metamethod?)

1 Like

It ultimately depends on what method you prefer. Storing data values inside a folder would be a good way of storing data for a newer scripter. If a more advanced scripter wanted to save data values inside a module script, then it’s up to them. Ultimately, it doesn’t matter which one you use. Both are fine.

2 Likes