This block works for Ruby Robot!
Use the Brake Until Stop block to stop the robot:
Just remember... braking is a gradual progress. It doesn't happen immediately.
Did You Know?
Behind the scenes, this unassuming little block executes quite a bit of code! It uses a loop with a Brake Wheel block inside it, which continues to repeat itself until the robot's velocity reaches 0.