Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I make a new line in a message?

Asked by 9 years ago

I want to make a new line a message. like so it has two lines.

my code:

local str = "1 line

2 lines"

2 answers

Log in to vote
3
Answered by
Tigerism 220 Moderation Voter
9 years ago

Well, you have 2 options.

First, you can do:

local str = [[
1st line
2nd line
]]

or:

local str = "Hi\nHi"
0
OK thanks sir. CoolMalopus 50 — 9y
Ad
Log in to vote
1
Answered by
Tutoola 20
9 years ago

local string = [[

]]

Answer this question