How do I (fast and effectively) remove/delete scripts from studio. (Zacksisk backdoor removal)

I’m currently trying to remove a mass-script backdoors and there seems to be no effective ways (that I’ve tried) to delete the scripts from studio. The closest solution I could get to that was looping through the workspace’s descendants and finding the name of the script, then destroying it from there. The script is called “zacksisk”. Anyone have any tips?

2 Likes

Yeah just use a for loop and paste it in the command bar.

for index script in pairs(workspace:GetChildren()) do
    if script:IsA("Script") and script.Name == "zacksisk" then
        script:Destroy()
    end
end
2 Likes

The fact that I completely forgot to do this is embarassing. Thank you. EDIT: I made a script for in-game, I didn’t realize I could have copied and pasted it into the output!

2 Likes

Oops, replace GetChildren to GetDescendants btw

3 Likes

I’ve already done that, thank you:

for i,findBackdoors in pairs(game.Workspace:GetDescendants()) do
	if findBackdoors.Name == "zacksisk" then
		findBackdoors:Destroy()
		print("backdoor "..findBackdoors.Name.." removed")
	end
end

2 Likes