Billboard gui above player with multiple lines of text

I want to make billboard gui above player’s head to show their name and one of the stats inside them. I know how to do it all I just don’t know how would I make it have multiple lines, so top line would be player’s name and bottom line the value.

When setting the text on a TextLabel you can use "\n" to go to a new line like this:

script.Parent.Parent.TextLabel.Text = "text1\ntext2"

You could do as the above suggested and use the escape pattern “\n” to denote a newline in a string value or you can use multiple TextLabel instances with a different stud offset set for each, I prefer the second option as it allows you to customise/style each line of text differently.

1 Like