How would i select everything in the find / replace window?

i want to select every single script with -part:GetMass() in it because im cleaning up my game, but i cant figure out how (take a look)

ive tried searching through the forums, the documents, even asking the assistant but i cant find any way to select everything

Uhh you can try this (run in your studio command bar)

local scripts = {}

for _, scriptInstance in game:GetDescendants() do
    if scriptInstance:IsA("Script") and scriptInstance.Source:find("-part:GetMass()") then
        table.insert(scripts, scriptInstance)
    end
end

game:GetService("Selection"):Set(scripts)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.