So I just need to get the end points of a frame. Just keep in mind that they might be rounded. There’s some kind of a formula to achieve this.
is this what you mean?
return function(frame)
local asize, apos = frame.AbsoluteSize, frame.AbsolutePosition
local topleft = apos
local topright = Vector2.new(apos.X + asize.X, apos.Y)
local bottomleft = Vector2.new(apos.X, apos.Y + asize.Y)
local bottomeright = Vector2.new(apos.X + asize.X, apos.Y + asize.Y)
return {topleft, topright, bottomleft, bottomeright}
end
1 Like