Plugin Button keeps on "clicked" when used


So i’m writing my first plugin.
Now i’ve noticed that when the Plugin’s button is pressed, it keeps showing like it’s being clicked. (See images below)

Clicked state below

Neutral state below

How do i make it so that the button returns to it’s neutral state when the function in the Plugin’s script, is done running?

Use SetActive by placing true if it should be pressed and false if it should not be pressed.


local AnchoreAllButton = toolbar:CreateButton(…Long data here…)
AnchoreAllButton.SetActive = false