I was rushing a bit at the end of my post so let's see....
You figured it out (correctly) that I meant "thebutton" as the name of the button. I didn't know what yours was called, but I also didn't make it clear that I was making up a name for it. Sorry about that! But something is still not right, huh...
Is it possible there's an extra space at the beginning or end of the widget name? I do that all the time... and it will technically affect what the name of the button.
If the button's name is just "GrabFlowerButton", then that's how you should be able to write it in the code.
GrabFlowerButton.locked:1
Also! Since you mentioned things that only work inside a widget's script, I'll also mention this in case it's useful:
When you're writing a script for a widget you can always refer to that specific widget as "me"
So for the script inside the button you can write it like this:
me.locked:1
Though you'll still have to use its name whenever you're referring to it in scripts that live anywhere else in your project.
I hope one of these things can help! I'll check back again later. 🫡
