Returns the contents of the edit box as a number. Similar to tonumber(editbox:GetText()); returns 0 if the contents of the edit box cannot be converted to a number.

Signature:

num = EditBox:GetNumber()

Returns:

  • num - Contents of the edit box as a number (number)