How to create new text line with script?

What do I want to achieve? I want to learn how to create a new line of a textLabel using a script.

What is the issue? I don’t know how to create a new line.

What solutions have I tried so far? I tried looking on the DevForum, on Youtube, and other scripting help websites. I found some devForum posts relating to “/n” , however when I tried using it, it broke my script that loops through multiple page functions with a while true loop.

local function page2()
	
	playerGui.tutorialGui.Frame.Text.Text = "Shop"

	playerGui.tutorialGui.Frame.descText.Text = "At the shop you can buy useful items"../n.."Use these items to kill the Overseer."
	
end
1 Like

/n has to be in the text itself not as a variable. Do it like this:

"At the shop you can buy useful items /n Use these items to kill the Overseer."
3 Likes

Not sure why, but it isn’t working, the /n stays in the textLabel and a new line is not created.

Its actually \n and not /n oops

2 Likes