Hello! I need help detecting line breaks, since methods like string.split(string, “/n”) or string:split("/n") would not work. An example of this is:
String = [[line 1 line 2 line 3]] -- example string NewString = string.split(String, "/n") -- returns a table containing String itself -- for testing the output yourself for _, subString in pairs(NewString) do print(subString) end
(I read from Strings that line breaks in strings are usually marked by /n)
Output (If you tested in studio):
(sorry for the low quality image)
Be aware that all the output was all in one statement, which means it wasn’t separated.