Help with Lyrics GUI

I own a theatre in roblox, and I am trying to create some tech/screens that make things a lot easier for those controlling the lighting, sounds and screens during events.

I am trying to create a lyrics screen where you can paste song lyrics into the text box and press continue. From there, the scripting detects the line breaks and creates a new text button for each line of the song so that you can select each individual line to display on the screen.

How would I go about detecting line breaks, then making each line a button?


1 Like
local Lyrics = [[

local Lines = Lyrics:split'\n'

for i, Line in ipairs(Lines) do
	local Button ="TextButton")
	Button.Text = Line

Probably gonna be a pain to do this because you have to filter all user input and the filter usually removes newlines if something is censored

1 Like