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

How to calculate the distance between two CFrames??

Asked by 2 years ago
Edited 2 years ago

Well, the title says it all. How to calculate the distance between two CFrames??

or, How many studs is the distance from Point1 to Point2??

1 answer

Log in to vote
3
Answered by 2 years ago
local distance = (CFrame1.Position - CFrame2.Position).Magnitude
Ad

Answer this question