I am working on a plugin that helps you edit and fix your code.
I made a 'replace keyword' system but when a keyword is replaced in another script source, an extra line comes in the source.
local rptext = ui.Frame.Replace.Text
local withtext = ui.Frame.With.Text
local lines = {}
for line in string.gmatch(item.Source, "[^\n]*") do
if string.find(line,rptext) then
local modifiedline = string.gsub(line,rptext,withtext)
table.insert(lines, modifiedline)
else
table.insert(lines, line)
end
end
item.Source = table.concat(lines,'\n')
