Can I add an object that contains other object's name in a table?

So for example, I’ve created a table that contains the player’s wings.

local wings = {
Wing1 = {isUsing = true}

}

But when player gets new wing, I want to add same name like this, but I don’t know how to add new one with same name.
Result will look like this.

local wings = {
Wing1 = {isUsing = true}
Wing1 = {isUsing = false}
}
1 Like

You could name it the player’s userid / username, but have another member of the object called “Type” and then name that Wing1. That maybe could work for what you’re trying to accomplish.

1 Like

You can’t have two values in an array with the same index name/key

1 Like