Check if the text inputted inside a textbox was a number

If anyone knows how this could be done, let me know.

local TextBox = ...

TextBox:GetPropertyChangedSignal("Text"):Connect(function()
local CheckText = TextBox.Text
if tonumber(CheckText) then
print(CheckText.." was a number!")
end
end)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.