Anyway to drop lines using text labels?

I’m making a GUI that requires multiple lines of text, but I don’t want to have more than one text label. Is it possible to drop a line?

4 Likes
-- By code, if you want to do it in-game or on the command line
TextLabel.Text = "Line1\nLine2"

You can also copy and paste text from some text editor, and it perserves the newlines.
Finally, you could try to type the newlines yourself, but I just spent some time and couldn’t figure it out.

11 Likes

Would it be possible to use something such as:

TextBox.Text = "Line1
Line2"

Edit: This was wrong, refer to posts below.

Ah yes, I forgot, multiline strings.

'''This is an example
of a multiline
string.'''
2 Likes
local string = [[multiline
string
...
hello
world!]]
7 Likes

Yep I was wrong, what I wrote was python’s mutliline string.

3 Likes