How can I make a part's position at the end of another part?

Hello everyone,

So what i’m asking is relatively simple. Basically, I need a part to spawn at the end of another part, but I don’t know the math to do this.

I have this: endPart.CFrame = newPart.CFrame * CFrame.new(0,0,zVal)

Where zVal is the z value of the part relative to “newPart” that is going to be attached at the end of it. Does anyone know some quick math magic so I can make an efficient way to basically place endPart always at the end of newPart (z plane wise)? Thank you!

Does this help by chance?

Thanks, that’s what I needed. Works fine now.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.