a = {"one"}
b = {"one", "two"},
c = {nil, "two"},
d = {nil, "two", "three"}
a and b are both sequences, but c and d are not.
the game will leave the sequences alone, but it will stringify the keys of the non-sequences.
Here's a command that adds a button to the player's screen with these tags, and prints out the tags the element has.
Code: Select all
/c local button = game.player.gui.screen.add{type = "button", tags = {a = {"one"}, b = {"one", "two"}, c = {nil, "two"}, d = {nil, "two", "three"}}} game.print(serpent.line(button.tags))
{a = {"one"}, b = {"one", "two"}, c = {["2"] = "two"}, d = {["2"] = "two", ["3"] = "three"}}
Notice how the keys for c and d are strings instead of numbers.
I'm not sure if this is intended behavior, but it's not documented on latest and left me really confused for about an hour. :P