Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to find the cframe between 2 points?

Asked by
Altives 17
3 years ago

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

Log in to vote
0
Answered by 3 years ago

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

0
i want the distance Altives 17 — 3y
0
that formula is the distance.. Spiritlotus 151 — 3y
0
\well thanks Altives 17 — 3y
Ad

Answer this question