local magnitude = ((script.Parent.ImagePoint1.Position.X.Scale - 0.2) + (script.Parent.ImagePoint1.Position.Y.Scale - script.Parent.ImagePoint2.Position.Y.Scale))

local line = Instance.new("Frame")

line.Size = UDim2.new(0.005, 0, magnitude + .05, 0)

line.Parent = script.Parent

line.BorderSizePixel = 0

line.BackgroundColor3 = Color3.new(0, 0, 0)

line.Position = UDim2.new(script.Parent.ImagePoint1.Position:Lerp(script.Parent.ImagePoint2.Position, 0.5).X, script.Parent.ImagePoint2.Position:Lerp(script.Parent.ImagePoint1.Position, 0.5).Y)

It works for making the line, but I can't figure out how to make the rotation right so that it actually links up the two points.