As mentioned on the title, I want to fit a frame between 2 points by using a script. I’ve tried lots of things but none of them worked. This is a screenshot of an example of what I want to achieve.
You would place the frame at the position of the first point (and move it to the middle of it for effect you want), then you can just subtract the positions of the 2 points to get the size needed for the frame:
This works with scale too, you just need to replace UDim2.new(0,point1.Size.X.Offset/2,0,point1.Size.Y.Offset/2)
with UDim2.new(point1.Size.X.Scale/2,0,point1.Size.Y.Scale/2,0).