Theres colliders that trigger when the boxes connect with the belts. The boxes move depending on which belt its connects with. Theres a string identifier with each belt to let the boxes know which direction to move.