I am working on a plugin that develops a script for you from the input that the user gives. The problem is, I have to add to the already there script. To do so, I need to indent one line lower so the script does not have everything on one line. So is it possible to indent the string onto multiple lines?
✓ ANSWER ACCEPTED
Is it possible to put multiple lines of string?
2 answers
✓ Accepted answer
You can use newline characters which are represented by \n in your string. For example, if you had a Script in Workspace just called Script, you could set the source like this:
game.Workspace.Script.Source = "local a = 1\nlocal b = 2"
And the two variable declarations will be on different lines, like this:
local a = 1
local b = 2
1 comment
0
Sorry for the late acceptance, I did not see your reply. Thanks!
Try Using "TextScaled", on your TextBox's Text. Not Place-Holder Text.
Hope That Helped.
2 comments
0
I was more meaning for the format of just a string so that it can become the script
0
Then what EmilBendsSpace said would work.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
I'd like to introduce you to the special character "\n", AKA Newline character.