Making a script that destroys a script that is trying to destroy the baseplate

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to make a script that inserts a scipt that destroys its parent into a script that is trying to destroy the baseplate

  2. What is the issue? Include screenshots / videos if possible!
    I don’t know how to make the script find a script that is destroying the baseplate and stopping it before it actually destroys it

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I tried looking for common virus names but they are always different and I don’t wanna type them all out

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

It would be cool if you could tell me how to detect other virus behaviour like rapid cloning and inserting of objects

script 1:

while true do 
	if script.Parent.Backup.Enabled == false then
		script.Parent.Backup.Enabled =true
	end
	wait()
	end

script 2:

while true do
	wait()
	if script.Parent.BasicAntivirus.Enabled == false then
		script.Parent.BasicAntivirus.Enabled = true
	end
end

script 3:

while true do
script.Parent:Destroy()
wait()
end



These scripts are all located in ServerScriptService

So you’re trying to protect the server, from the server?!?

Just review everything that you copy paste into your experience, you’re the one responsible for your game behaviour.

No the scripts are unfinished because I don’t know what to put after