How to remove a string's first line?

I want to remove a string’s first line.

for example:

local a = [[PIZZA chicken ROBLOX
roblox and xolbor or nothing
tt uu aa dkkkk
dkdkdk]]
function RemoveFirstLine(ReqString:string)
--remove fire line
end
print(RemoveFirstLine(a))

Output

roblox and xolbor or nothing
tt uu aa dkkkk
dkdkdk

I’m not sure if there’s a way to do it… Maybe try using like [string.slpit]?

function RemoveFirstLine(ReqString:string)
	local Lines = string.split(ReqString, "\n")
	table.remove(Lines, 1)
	return table.concat(Lines, "\n")
end
local str = [[pog
  champ
]]
local split = str:split('\n')
table.remove(split, 1)
local result = ""
for _, s in next, split do
  result = result .. s
end

print(result)

Here’s a post you’ll find helpful.

Thank guys! It’s very helpful :smiley: