Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why won't PluginButton:SetActive(false) actually deactivate the button?

Asked by
if3q 6
3 years ago

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!

1 answer

Log in to vote
0
Answered by 3 years ago

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
Ad

Answer this question