when I try to use string.sub() it doesn't detect some of the characters/letters that i use is there a solution?
print(string.sub("?????",1,1))
?
when I try to use string.sub() it doesn't detect some of the characters/letters that i use is there a solution?
print(string.sub("?????",1,1))
?
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
when you say string.sub("?????",1,1) you are getting the string from the 1st position to the 1st position (the first question mark in the string) If I did string.sub("abc",1,1) i would get "a". If I did string.sub("abcdef",1,3) i would get abc
What are you trying to do? If you are trying to get each character, do string.split("?????", ""). it will return a table containing every question mark in the string
i didn't notice when posting but you can't upload some characters on this website either
for text box's you can do print(script.Parent.Text:sub(1,1))