Add an ID of a UI element that we can interact with. Elements that aren't on the list of clickable IDs will not be interactable.
Add an ID of a UI element that we can interact with. Elements that aren't on the list of clickable IDs will not be interactable.
1 any id
the unique ID of the element we wish to restrict interaction to.
local panelOne = gui.create("Panel") panelOne:setID("uniquePanelID") local panelTwo = gui.create("Panel") panelTwo:setID("uniquePanelIDTwo") -- this will allow us to interact only with the panelOne object gui:setClickIDs({"uniquePanelID"}) -- and with this call we will be able to interact with both elements gui:addClickID("uniquePanelIDTwo")