You will find that people are often asked to post the “offending” code. Can you do that? That way we don’t have to speculate as to the potential problem.
Also not sure what you mean by “spinning.”
You posted a photo. I’m probably missing something but what is the photo supposed to show?
The problem with your robot is that one of the motors needs to be reversed. The brain thinks it is going forward by turning the wheels, but it is actually spinning one the wrong way, causing the robot to spin. Try reversing one of the motors, then come back and post your code if that doesn’t work.
I’m not entirely sure what the logic executed by the drivetrain blocks is, but if it’s looking for a motor that’s running in the wrong direction to reach a certain rotation and it’s going the oposite direction, it will just keep spinning forever because it’s never going to get to that target rotation.
except that running a motor “forwards” should always cause the encoder count to increment. When we reverse a motor we also reverse the encoder counting.