Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to create lines in strings?

I wanted to know how if possible I could add another line to a string, like as follows:

String  = "BSIncorporated has
killed Bluemonkey132"

Just an example

1 comment

0

Try ( )?

2 answers

✓ Accepted answer
String  = "BSIncorporated has \n killed Bluemonkey132"

1 comment

1

You can also use Brackets to do this as well.

Lua supports the following methods for creating string literals:

s = "Double quotation, \n Next Line"
s = 'Single quote, \n Next Line'
s = [[ Multi line
string, carries across editor new lines]]
s = [==[ You can also nest these like this, and [[ this won't]] end
The string]==]
s = [=====[As long as you match up the number of
= signs
between the brackets, it will work.]=====]

1 comment

3

Wth is up with the points...

This discussion is preserved as it was. New answers, comments, and votes are closed.