So far this is what I have, but I want one where it just doesnt allow letters.
function CheckForNums(Box)
if Box:IsA("TextBox") then
TT = {}
for i=1, #Box.Text do
TT[#TT] = Box.Text
end
Box.Text = ""
for _,v in pairs(TT) do
if tonumber(v) ~= nil then
Box.Text = Box.Text..v
end
end
end
end
while wait() do CheckForNums(script.Parent) end

1 comment
Use a number value?