Generating fences from pre-set fenceposts

In my place, I currently have a lot of pre-made fence posts. In order to save time and a lot of effort I am trying to automatically generate 2 boards connected to the fence posts, to complete the fence.

I am also trying to generate invisible walls between the posts so players cannot traverse beyond this point.
(Poor diagram)

My only problem is, I have little knowledge of how to use CFrames and Vector3s beyond simple translations, and do not know where to start. Could anyone be of assistance to provide knowledge on how to position boards and walls between the 2 posts, and orientating them correctly?

I have solved this myself and do not have permission to delete this topic.

can you say how thanksㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ