How do you get the distance between two vector2 points?

I don’t mean magnitude, I mean if I wanted to get the distance between the X positions of the mouse and a Frame’s UDim2 positional value, how would I do that? Since frames don’t have the same X and Y start and end as the mouse.

Just use the frame’s AbsolutePosition instead of its UDim2.

1 Like