Hello, another post again i know but i would like know how to detect if textbox is a number once again here is this script
local TextBox = script.Parent.Input
script.Parent.TextButton.MouseButton1Click:Connect(function()
local text = "rbxassetid://"..tostring(TextBox.Text)
script.Parent.Parent.Parent.Parent.Image = text
end)
il reply fast as soon! if u get it
when clicking done I want it detect if its a number or not
local TextBox = script.Parent.Input
script.Parent.TextButton.MouseButton1Click:Connect(function()
if tonumber(TextBox.Text) then
local text = "rbxassetid://"..tostring(TextBox.Text)
script.Parent.Parent.Parent.Parent.Image = text
else
print("is letter")
end
end)