I’m trying to deactivate the plugin button on the toolbar inside the plugin script.
→
I’m not looking to disable the button, but to simply deactivate it as if you were to click it.
I’ve been looking on the devforum and documentation for too much, so I decided to ask here. I know it’s possible because I’ve seen other plugins do it.
I’ve tried .SetActive()
, .Activate
and .Enabled
Current situation:
if not pluginGui.Enabled and ran then launch:SetActive(false) end
Any help is appreciated!