So, I am trying to design a script that gets the numbers in a name (E.G the name is Number56, and I'm trying to get the 56). But the names on what I'm analyzing differ, so I need to make a script that checks for numbers before it adds them. Now, I'm talking about these values
local num = 5
instead of these values (I could get the ClassName for these ones)
local num = script.NumberValue
Is there a way to check if it is a number/string like this?:
if num:IsA("Number") then
-- code
end
ROBLOX Wiki has come up with no answers for this. Thank you :)

1 comment
Thank you :)