Absolute Distance from frame to mouse

So currently im trying to find the distance between a gui and the players mouse position, but i have no clue on how i could achieve that!

You can try

(Vector2.new(Mouse.X,Mouse.Y) - Frame.AbsolutePosition).Magnitude

If that doesn’t work search around for:

  • Vector2 to UDim2
  • Magnitude of UDim2