Workspace search to search through properties as well

Basically what the title says. I want to be able to look through all the String.Value and TextLabel.Text and ImageLabel.Image properties and so on to find whatever I’m searching for.

1 Like

You can search for names using the workspace search

Modified my post.

Workspace search? Is that CTRL+SHIFT+F or am I missing out on a new awesome feature?

Also, if you don’t mind using a script, this would work:

local query = "digpoe rocks"
local property = "Value"

local function recurse(obj, f)
    for i, v in pairs(obj:GetChildren()) do
        pcall(f, v)
        recurse(v, f)
    end
end

local sel = { }
recurse(game, function(o)
    if o[property]:match(query) then
        sel[#sel+1] = o
        print("Object found:", o:GetFullName())
    end
end)

game.Selection:Set(sel)

4 Likes

I’m not sure this is such a good idea. It could make search results rather confusing.
I don’t think it’d be very obvious why you were given a specific search result just by looking at it if it were based on a property of the result.

@digpoe There’s an explorer filter at the top of the explorer pane that functions like the filter in Advanced Objects

@Osyris I agree – seems like CtrlShiftF would be a better place for it than the explorer filter. Could replace the script path with object+property path, and clicking it would select the object instead of opening the script editor. Maybe also make it togglable in case this behavior could get annoying by polluting the results.

3 Likes