Returns the width of the button's text label

Signature:

width = Button:GetTextWidth()

Returns:

  • width - Width of the button's text (in pixels) (number)