#how to get the distance between 2 points in gui?
3 messages · Page 1 of 1 (latest)
https://devforum.roblox.com/t/how-to-find-a-distance-between-2-udim2s/2061025/4
(ImageLabel1.AbsolutePosition - ImageLabel2.AbsolutePosition).Magnitude
Developer Forum | Roblox
To get the distance, you would do: local frameSize = frame.AbsoluteSize -- the frame that your UDim2s are relative to local p1 = UDim2.fromScale(0.124, 0.234) -- your first UDim2 local p2 = UDim2.fromScale(0.837, 0.654) -- your second UDim2 local p1Vector2 = Vector2.new(p1.X.Scale, p1.Y.Scale) local p2Vector2 = Vector2.new(p2.X.Scale, p2.Y.Sca...