You can create something like this:
01 | local badNames = { "Infected" , "TROLLSZOR" , "U GETE POWNED NOOBLUNOOB" } |
03 | function isBadName(name) |
04 | if string.lower(table.concat(badNames, ' ' )):match(name:lower()) then |
10 | for i, item 1 in pairs (game.Workspace:children()) do |
11 | for i, item in pairs (item 1 :children()) do |
12 | if isBadName(item.Name) then |
(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.