It was supposed to be a code where, after three seconds, it falls, and either hits the ground or hits the object that you control. (I trailed off and made the code so it ONLY hits the place where the controlled object is at the y position, so yeah, that’s an obvious bug.) (EDIT: I didn’t even use the y position block, I truly did trail off.)
The “pick random to” block picks a number” IN BETWEEN -100 and 100. So your wait untill block is waiting for something that will never happen most of the time.
Well, first, I don’t think you meant to put the GO TO block inside the FOREVER. You’re repeatedly setting the Y position to 100, then changing to 90, then next time through the loop you set it to 100 again.
Secondly, WAIT UNTIL doesn’t work the way you think it does. You think the FOREVER loop will keep looping, but it won’t; WAIT UNTIL pauses the execution of your script until the condition is met, which will never happen, because the FOREVER doesn’t keep looping; it’s paused! If you want a loop to continue until some condition is met, use
Yeah I know that, I used that so it’ll go anywhere in that range of numbers. (Sorry I mightnot be reading this right)
This is very useful, thank you! ![]()
I’m guessing I should post this here instead of making another post, but how would this code work when it touches the ground instead of touching the object? So, would it go to the y position where the object is?
i made a quick example for you
thanks (insert thumbs up emoji here)
Off-topic tip in case you did not know it yet: when sharing script pics, instead of taking screenshots of it, right-click on a script and select "script pic". Using script pics even allows us to drag them into our editor without having to reconstruct it block by block.
That’s so weird that I haven’t noticed that… thanks ![]()

