In the API documentation, LuaGuiElement.index is said to be unique.
While it appears to be unique in single player, it seems that in multiplayer two different players can have different buttons sharing the same ID.
Suggestion:
Code: Select all
The unique index of this GUI element. ----> Index of this GUI element (unique amongst the GUI elements of a LuaPlayer).