I recommend you to watch a tutorial video first
https://youtu.be/slqCsvnURbI

for this project you need this things :

Hardware parts:

wiper windshield DC motor
-12v power supply
dpdt switch
two limit switch
motor speed controller
-three linear shafts (one of them 56 cm and two of them 60 cm) all of them 12mm diameter
-5 linear bearings for 12 mm shaft
-two big ball bearing ( inner diameter is 17 mm and outer diameter is 40 mm)
-one small ball bearing ( inner diameter is 8mm and outer diameter is 22 mm)
-six 13mm head size bolt (55 mm length)
-four 8.5mm head size bolt (52 mm length)
-one 8.5mm head size bolt (78 mm length)
-150cm of 6mm belt
-1kg of PLA filament