So I'm kinda new to string manipulation and was trying to make a search thing that goes through a text box and finds every new line, I have been getting very confused though so please help me. Thank you.

	t = {}
	local textbox = script.Parent.TextBox.Text
for i,v in pairs,(textbox:gmatch("\n")) do
	table.insert(t, v)
end

2 comments

0

show us what you have made so far

0

for i in textbox:gmatch("\n") do