I am making a script but I want it to check if the 'Value' entered is a number or a string. I am using
if script.Parent.TextBox.Text - 1 ~= nil then
This works great for a number. But when I enter text I get this:
if script.Parent.Insert.Text - 1 == nil then
'attempt to perform arithmetic on field 'Text' (a string value)' I need a more efficient way to detect whether it is a number or a string. Can anyone help?
