#number only textbox
1 messages · Page 1 of 1 (latest)
local tb = --path
tb.Changed:Connect(function(property)
if property ~= "Text" then return end
if tb.Text:match("^[0-9]+$") then return end
tb.Text = tb.Text:sub(2)
-- if the last one tb.Text = tb.Text:sub(1, -2)
end)