Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you get a number out of a string which has the number in it? [SOLVED]

Asked by 5 years ago
Edited 5 years ago

I have a piece of text that has a number I want but I don't know how to take out the number.

0
Use string.sub, string.find, or string.match to find that number in the string, and use tonumber() to make the extracted number into an actual number Rare_tendo 3000 — 5y
0
string.find worked RichCookieGamer 7 — 5y

Answer this question