I want to make a shop system, well it’s done, but I feel like I did it the wrong way. well, there’s a folder where I keep shop items, and a folder inside each item specifying rarity, description, basic stuff. but is there a better way to do this? I think putting multiple values in a folder is not a very good solution, so it would be nice if I had something better to do or if I’m actually doing it correctly.
in short
what is the best way to store the same variables (as description) of several different objects?
you could always have a module script inside of each item with a return value that looks something like this
for example:
return{
Rarity = "Rare",
Description = "This item is super cool!",
AnyOtherValueForTheItem = --something here
}
then all you would have to do is take those values from the module script inside of your shop handler. sorry if this doesnt help you, this is just how i would do it.