Separation code puts pieces in incorrect places

hi this my first roblox devforum post
my current code finds the distance from the cut indicator (the black part) to the top/bottom of the part and creates two new parts. it then moves the new parts accordingly and it deletes the original and the cut indicator
image
i need some help fixing my code to place the two new parts in the correct locations. my goal is for there to be no space between them. it should look exactly like the original part until it’s disturbed

it does this
image
image

guysd im making uhhh lumber tycoon 2 guys :tractor:

(pieces too far away make them no space)

here the full module script