Is it possible to change the image on a plugin button using scripts?

So, I’m trying to make a plugin with a toggle button, and I’m wondering if it’s possible to change the button’s image with scripts.

I tried Googling answers but couldn’t find anything.

Thanks!

This might work?

plugin.icon = rbxassetid://[id]

I’m pretty sure plugin relates to stuff related to functions in general, not just plugin buttons.

On the object browser, under “PluginToolbarButton” there’s something called “icon.” Idk if you can change it.

1 Like

It worked!

Thank you so much!

1 Like

Nice, good luck on whatever you do next with the plugin! :slight_smile: