Hey all, so I am super new to Roblox Studio and I have a pretty simple question
I want to make sure I understand stuff correctly and wanted to ask, what is the best way make a "Dataclass" like in Roblox Studio?
Say I have an inventory system, how could I implement a simple class to just hold an "InvetoryItem" and its properties? so for example, if I had to do it in python, it would look something like -
from dataclasses import dataclass
@dataclass
class InvetoryItem:
name: str
amount: int
...
Also, I know that in this case I should probably use ModuleScript, but what's the reasoning behind it?
Thank you all very much in advance!

** You are now Level 1! **