I've got this code here to de-select a plugin button when the gui is closed, but it will not work.
lsWidget:BindToClose(function() lsbtn:SetActive(false) lsWidget.Enabled = false lsIsOpen = false end)
I've looked everywhere for a solution or an alternative but I can't find anything. Please help!
idk what you meant by "de-select" but my method is
PluginButton.Enabled = false -- you cant put some task here or just put this in the end PluginButton.Enabled = true