This is what I have tried, but this finds the Global distance:
1 | distanceX = part 1. CFrame.X - part 2. CFrame.X |
I have experimented with CFrame.lookVector, but I couldn't get that working either. Does anyone know how I can accomplish this?
Vector.magnitude
1 | print ((part 1. Position - part 2. Position).magnitude) |