Hi, I would like to know how to split strings. For example, python has a split() function which splits strings into two. I would like to know how to do that in Roblox.
Thanks to those who helped!
Hi, I would like to know how to split strings. For example, python has a split() function which splits strings into two. I would like to know how to do that in Roblox.
Thanks to those who helped!
local a = 'yoi' local b = a:sub(0,1) local c = a:sub(1,#a) print(b,c)
should be 2,#a
I can see how to implement this in my scripts! Thanks!
oh
you can edit it
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
string.sub or just do this