I know you’re probably immediately gonna say “Ctrl+Shift+F” but this is for a plugin that helps a developer optimize their game a little.
My idea right now is search through every script in the game and check for 2 conditions, is it a server script? Does the source code contain any of the keywords? If true then send a warn() in the output with the script name and directory.
you can use the .Source property of a script to read what is inside of it through code
just do string.find from there with list of keywords
local script = game.ServerScriptService.Script
local keywords = {"robux"}
function checkScript(scr)
local src = scr.Source
for i, v in pairs(keywords) do
if string.find(src, v) then
warn("i dont like this word: " .. scr.Name)
end
end
checkScript(script)