How to make a button not clickable

Hello, Everybody

So I was wondering if there was a way to make a button unclickable. I have this script where if the player has more than 5 pets equipped I want to make it so he can’t click the equip button anymore.Is there a way to script that or something else?

Heya!
I’d suggest looking at this post and seeing if it has the relevant information you need:

You can simply check if the player has less than 5 pets, and if they do, make them equip it, if they don’t, do nothing