EZ Selection is one of canary’s first plugins. It’s supposed to help people select multiple things at once by name in workspace!
How do I use it?
If you just installed it, you should find an icon in the top bar, titled “Selection” .
If you click it, a GUI will pop up. Now, use the textbox to find the name of the child.
You can press the select button or enter.
This would be a much more efficient script (improving on your own):
local function searchObjects(lookForName)
local objects = {}
for i,v in pairs(workspace:GetDescendants()) do
pcall(function()
if v.Name == lookForName or lookForName == "all" then
table.insert(objects,v)
end
end)
end
return objects
end
local child = script.Parent.Parent.SelectionBox2
child.FocusLost:Connect(function(enterPressed)
if enterPressed then
local lookForName = child.Text
local objects = searchObjects(lookForName)
game:GetService("Selection"):Add(objects)
end
end)
script.Parent.MouseButton1Click:Connect(function()
local lookForName = child.Text
local objects = searchObjects(lookForName)
game:GetService("Selection"):Add(objects)
end)
So for example, if you put a bunch of parts in random places, you wouldn’t be able to efficiently select them if you wanted to change anything about them.
It would be more effective to port DEX to a plugin then use this. It is way easier to use explorer to select things. Explorer has multi select and a search box.