Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to find the cframe between 2 points?

So i'm not too advanced in lua but does any know how to do this ok so here is 2 points Point 1 CFrame = -27.9838257, 681.122009, 725.862732 Point 2 CFrame = -48.4227066, 681.293396, 701.498535 How will i get the cframes between these two points I'm trying to find an answer so i could make an auto build type of script for some project I'm working on Any answers or hints are appreciated

1 answer

✓ Accepted answer

first of all those look like positions, as they are Vector3 values. secondly, there is no “CFrame between parts”. A CFrame represents both the position and the rotation of a SINGULAR part. you want the distance?

(part1.Position - part2.Position).Magnitude

3 comments

0

i want the distance

0

that formula is the distance..

0

\well thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.