When the user enters a value, run it through local number = tonumber(input) which will accept negative numbers. If tonumber returns a number, accept the value and continue. If it returns nil, reset the EditBox to the last value, maybe even give an error.
|