How to use tables?

local gameCharacters = {
 A1 = 'Gingerbread Cookie',
 A2 = 'Strawberry Cookie',
 A3 = 'Mint Cookie',
 A4 = 'Chocolate Cookie',
 A5 = 'Blueberry Cookie'
}

print(gameCharacters)

You access the elements that you would access the properties in an object or a userdata.

print(gameCharacters.A1)
4 Likes