I came up with a script to detect when new lines are made, however after a new line is made, i could not figure out how to make the script ignore it after the player types in more stuff:
script.Parent.TextBox:GetPropertyChangedSignal("Text"):Connect(function()
if string.find(script.Parent.Frame.ScrollingFrame.ScriptReader.Text,"\n") ~= nil then
print("NEW LINE")
end
end)
Any solutions on how to make this ignore lines after they have been made would be very appreciated!