So I got my own chat gui, issue is, some people copy and paste into it text that contains a newline.
They then create text on two lines, which is not ok.
What character is the ‘newline’ character?
So I got my own chat gui, issue is, some people copy and paste into it text that contains a newline.
They then create text on two lines, which is not ok.
What character is the ‘newline’ character?
“\n”
You have to execute code to use it within UI stuff though. Writing it into the Text property won’t work. Just do it from a script or command line:
blah.Label.Text = "Test\nA new line!\nAnother new line"
Remove newlines:
message = message:gsub("\n", " ")
Quick and simple. Thanks