I have made a nice place, but some brick putted Infected weld in every single model and brick. How do I delete this fast? Or do I have to click on every thing an delete it one by one?
You can create something like this:
local badNames = {"Infected", "TROLLSZOR", "U GETE POWNED NOOBLUNOOB"} function isBadName(name) if string.lower(table.concat(badNames, ' ')):match(name:lower()) then return true end return false end for i, item1 in pairs(game.Workspace:children()) do for i, item in pairs(item1:children()) do if isBadName(item.Name) then item:destroy() end end end
(From the tip of the day today, they are extremely useful)
This script checks the children of all the items in the workspace. If any child's name is in the "badNames" table, that child will be deleted. Just add names to your liking in case there's any more viruses.