Path spawner (gear)

Trying to make a tool where when you click the floor in two different locations it spawns a small part in a part shape with these dimensions Height 0.05 , Width 0.3 (so its like a path)
So if you click twice in two spots it connects the places you clicked with a part with those dimensions, can anyone help?