function PositiveIntegerMask(text)
return text:gsub("%D+", "")
end
script.Parent:GetPropertyChangedSignal("Text"):Connect(function()
-- Replace the text with the formatted text:
script.Parent.Text = PositiveIntegerMask(script.Parent.Text)
end)
This is already a script that makes it so the TextBox can only have an integer input. How would I make it so the input needs to be below 60.
