Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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

This discussion is preserved as it was. New answers, comments, and votes are closed.