Is there a way you can get the first letter in a string or the second or whatever number. Through how stuff normally is on roblox studio I originally though it would be like this:
Str = "Stri" print(Str[3])
but instead it prints nil.
Strings have something called substring, wich is accesed by doing string:sub(StringValue,start,end)
if we do
string.sub("Hello, world!",1,1)
we would get H
as return.
if we do
string.sub("Hello, world!",2,4)
we would get ell
as return.
you can also do
("Hello"):sub(start,end)
or MyStringValue:sub(start,end)
If you have any questions, feel free to post a comment.
Suggest also reading this short wiki article
Str = "Stri" print(string.sub(Str, 1))