So basically I’m making recreations of some blocks and I’ve also just learned how to use block variables. I’m recreating the when I start as a clone block and trying to make it not be infinite. But for some reason, my script doesn’t run at all, even though I can’t see anything wrong with it.
first of all, the if else statement doesn’t make much sense: the elseif will never run because not(0) is true, so the first if statement will always run and not the second. Finally, I think snap just doesn’t work this way.
You don’t have to worry about it running infinitely because by default, custom hat blocks don’t. They only run when the result switches from <false> to <true> . So it will run the script below it the first time it’s true, but if it stays true, it won’t run the second time. If it then switches to false and then true again, it will run again.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
