How to find enter in a text box

Hello! I have a textbox with multiline on . However, I thought that multi line use “\n” to create a new line . However, I realise it uses something that looks like a space that the roblox string does not recognise . Any ideas?

This is known as the Line Feed or Newline Character.
ASCII: 10
Unicode: U+000
Hex: 0x0a

Hello! How would I check if that line feed is a line feed?? It keep throwing an Malfrom string

for those who are wondering , you can use stng.byte(letter) and check if that letter have unicode value of 10 . Thanks for you help!!!

local str = "Hello this is uhh\na new line!"
for i = 1, str:len() do
    if str:sub(i, i):byte() ~= 10 then continue end
    print("Character", i, "is a Line Feed!")
end

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.