local num = 1923919 local FaceID = "http://rproxy.pw/Orange-Sparkle-Time-Fedora-item?id=215751161" local sub = string.sub(FaceID, 18) local rev = string.reverse(sub) local ot = string.sub(rev, string.len(num) + 12)
This script prints Orange-Sparkle-Time-Fedora like its supposed to. But what I need to do is replace the hyphens with spaces, but how would I do that?
String.gsub replaces any letter/number with another letter/number
so it'd b lik dis cuti patooti
FaceID = string.gsub(FaceID,"-"," ")
There's the string.gsub function, which replaces things with other things.
ot = ot:gsub("-", " ") --Replace hyphen with space