Inconsistency with script running

I have this block here that arranges sprites to order (it uses my position blocks from this post):

Arrangement block
Project link

And I noticed this weird inconsistency: clicking the script and running it with other interactions.

Before arrangement:
before arrangement

Arranging by clicking:
click arrange

Arranging with the "when space clicked" block:
space arrange

The block is always supposed to be in consistent order, but the last object doesn't correctly align. If anyone can find out how to fix this, it would be much appreciated.

When you click on the script, the parent sprite runs it.

But when you hit the space bar, all three sprites run it!

Fixed with if<not(my[temporary? V])>{ ...}Definitely should start logging before I give up. Thanks!

ego-lay_atman-bay would definitely have killed me for the way I formatted that [sb] area. No regerts.

Heh, kind of. I did make a style guide for writing clean snapblocks, but it's mainly for making it easier to read and edit snapblocks, it doesn't necessarily matter how people format it in their posts, since no one is going to see the text.

I've also been trying to not police snapblocks usage on the forum, specifically so I can find bugs that may arise, and so I can see how people actually use it. For example, someone kept using [sb] for longer scripts that overflow off the side of my phone screen, and since [sb] is for inline scripts, I didn't think I could make it scrollable, so I was kind of anmoyed. However I then realized I could make them scrollable, so I fixed it.