If your motors are either side of a chassis, then for forward motion, one motor will rotate clockwise and the other counter-clockwise because it is on the other side.
What are you using as a power source, a proper circuit diagram other than a Fritzy diagram would be prefered.
Thanks for the help. Normally, I'll be using a 9v battery to power the 2 DC motor and another one to power the arduino uno. On tinkercad, it automatically powered the arduino wth the power code even if you use Vin on the card. Sorry I do not know how to draw circuit diagram, I'm just a newbie doing a small robot.
TheMemberFormerlyKnownAsAWOL:
Imagine that we don't know anything about your robot or your problem
Now, try again.
The project I'm doing is a small line following robots. Two wheels will be turn using two 6V DC motor, https://www.arduino.cc/documents/datasheets/DCmotor.PDF . And these two motor will be powered with a 9V battery. Another 9V battery will be used to power the arduino alone.
For know I'm writing the code to let the robots to move forward, but since on tinkercad it is in a 2D diagram, I'm confuse whether in real life the way I coded it, will it move forward.
My question is, how I coded it, will it move forward? Since I do not have the arduino kit in real life, I can't test it IRL.