Help With Offsetting A Position

I would like to offset this support to follow the pipe under it. How would I off set to the position relative to the pipe underneath it no matter the angle? I replied to someone below with a video that would be alot easier to understand

If I understand correctly, you want to make sure the pipe is connected seamlessly?

When I do this, I just set the CFrame of the smaller pipe to the CFrame of the bigger pipe. Then I make sure to only move on the Y axis.

If I’m wanting it to angle off of it rather than go exactly perpendicular off of it, make the smaller pipe twice its size before setting the CFrame. Then rotate it. Then manually drag the end of it halfway down so it’s the correct size again

I realize this sounds a lot more complicated when explained through text so here’s a video of where I first learned this years ago if it helps.

I realize my text may not have been fully clear. This video shows how that cross connecter automatically aligns its self with the pipe. I would like to be able to accomplish the same thing through code. The video is not the best, I had to pull some chunk of a video from youtube cause my game is updating right now. I know this is not ROBLOX. I’m just using it as an example.

It would be related to the CFrame (to respect the orientation). Currently been messing around and got this weird result, not quite right yet.

https://gyazo.com/071fb95e7c75b287618a0e1456d4bd44

odd, it seems to reverse the coordinates when you pass the half way mark on the pipe

How did you get to the point your at?

Been messing around for a bit with it, I can get it to stick to 2 axes but I can never get it to respect any orientation.

you can try multiplying the CFrame by the EuleranglesXYZ of the pipe

I’m not proficient in CFrame so I don’t really know how to program what you have done. How did you program it?