✓ Accepted answer
You can use the function string.gmatch to solve your issue, I suggest for you to take a look at the String library and String Pattern as those will definitely help you with some string issues, at this case you could use this code for example to separate each string when there's an " : " on it.
local TheString = "Username:true:Another Thing"
for i in string.gmatch(TheString, "[^:]+") do
print(i)
end
In this case it would make 3 different strings and out would output:
"Username" "true" "Another Thing"
Hopefully this helps you with your issue! Don't forget to accept it if it did solve it.
2 comments
use
string.sub()yea but how would i use it to split it where there's a ":"? in what i see the only thing string.sub() does is cut it off with numbers, not by saying cut when this character is in it