Returns the screen coordinates of the region's center

Signature:

x, y = Region:GetCenter()

Returns:

  • x - Distance from the left edge of the screen to the center of the region (in pixels) (number)
  • y - Distance from the bottom edge of the screen to the center of the region (in pixels) (number)