Newline character doesn't work with TextLabels

Used command line to set TextLabel.Text into a string with newlines, no worky worky

Don’t put it in [[ ]], that won’t pick up the newline characters as actual newlines. Try putting regular double quotes instead.

Tried that but got the error “unfinished string”

Can you post the string so I don’t have to type it over in Studio?

“HYPERSPACE ENGINE #1\n\nFUEL STATUS: FAIL\nCOOLANT ST.: FAIL\nELECTRICITY: OK\nHYPERDRIVE : FAIL\n\nENGINE FAILURE”

Is this two lines or one line in the script editor? I don’t see the issue if it is one, but, if it is two lines, then quotes to do multi line strings.

One line

Works for me on TextLabels in ScreenGuis and SurfaceGuis

2 Likes

Huh.

Did you forget a quote at the end that made you get the “unfinished string” error or something?

1 Like

…

14 Likes

16 Likes

I deserved this

10 Likes

Entertainment at it’s best.

7 Likes

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