Last active
October 4, 2020 23:28
-
-
Save SigmaThetaTech/17d24b470fc43e901203334807d0c959 to your computer and use it in GitHub Desktop.
For when your game gets infected with viruses. Select objects in question in studio and then run this in the command bar to nuke known virus script names
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
selection = game.Selection:Get() | |
local function quarantine(instance) | |
print("Destroying " .. instance.ClassName .. " named " .. instance.Name) | |
end | |
for i, v in pairs(selection) do | |
for i, descendant in pairs(v:GetDescendants()) do | |
if descendant:IsA("Script") then | |
if descendant.Name == "Vaccine" then | |
quarantine(descendant) | |
elseif descendant.Name == "J0HNSCR1PT" then | |
descendant:Destroy() | |
elseif descendant.Name == "GameLord777 Script" then | |
quarantine(descendant) | |
elseif descendant.Name == "GameLord777 Script" then | |
quarantine(descendant) | |
elseif descendant.Name == "Script......Or is it..." then | |
quarantine(descendant) | |
elseif descendant.Name == "Spread" then | |
quarantine(descendant) | |
end | |
elseif descendant:IsA("RotateP") then | |
quarantine(descendant) | |
elseif descendant:IsA("Fire") and descendant:FindFirstChild("Spread") then | |
quarantine(descendant) | |
elseif descendant:IsA("Weld") and descendant.Name == "J0HN" then | |
quarantine(descendant) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment