Roblox position doesnt account for rotated anchor points

The video demonstrates this well, the position accounts for the anchor point but not when it’s rotated, Does anyone have a solution to this?