Get Position Of Bottom Of Frame?

Hello there,

I would like to get the position of the bottom of a frame. I have no idea where to even begin! I do know it has something to do with AbsoluteSize/AbsolutePosition :thinking:

Any help will be great!

If the anchor point of the frame is 0,0, you can just do some math. The code below should be the middle of the bottom of the frame.
bottomFrame = Vector2.new(absolutePosition.X + absoluteSize.X/2,absolutePosition.Y + absoluteSize.Y)

Let me test this out… Thanks!

Didn’t work. The frame’s position is UDim2.new(0.5, 0, 0.5, 0) and AnchorPoint is 0. Size is in offset (UDim2.new(0, 100, 0, 100))

Preview:

Script:

local absolutePosition = script.Parent.AbsolutePosition
local absoluteSize = script.Parent.AbsoluteSize

local bottomFrame = Vector2.new(absolutePosition.X + absoluteSize.X/2,absolutePosition.Y + absoluteSize.Y)

local frame = Instance.new("Frame", script.Parent.Parent)
frame.Position = UDim2.new(0, 0, 0, bottomFrame)
frame.BackgroundColor3 = Color3.fromRGB(160, 255, 88)
frame.Size = UDim2.new(0, 100, 0, 100)
frame.Visible = true