function ParseScript(s) local tFs = {}; local tVars = {}; for key in string.gmatch(s, function ([%w%._]+)) do table.insert(tFs, #tFs+1, key) end for key in string.gmatch(s, (%w+%.%w+) = function) do table.insert(tFs, #tFs+1, key) end for key in string.gmatch(s, ([%w_%.%[%]]-[^=~%(%)])%s=.[^func]) do if key ~= ] then table.insert(tVars, #tVars+1, key) end end for key in string.gmatch(s, ([%w_%.%[%]]+[^=~%(%)%s])=.[^func]) do table.insert(tVars, #tVars+1, key) end return tFs, tVars; end