I was making a tycoon game when I reached the part where I needed to save the objects a player purchased with buttons. I came across the idea of adding a table in my table where data will be stored, which will be named a number, which is the ButtonID a player purchased. This is how I scripted it:
table.insert(Data.Tycoon.Floors[Floor.Name].Buttons, {
Time = os.date()
})
And I realized that you couldn’t add any argument for the table name. After a bit, I realized the table I inserted was an array, and I didn’t want that, due to the fact that the name would equal the ButtonID the player bought. I did some research and I couldn’t find anything that can support my issue. The most relevant post was this, but either way, I couldn’t understand what the post actually was trying to say, so I was left with no choice but to post a new topic.