dalekcats
|
  |
| Joined: 04 May 2013 |
| Total Posts: 57 |
|
|
| 10 Nov 2016 04:54 PM |
The game is [TGCA]Umbara or something like that. The game has been having some reports of lag, so I decided to look in explorer(via Khol's admin command) and found a workspace "virus" called ProperGr, a script under a body colors object with a blank name. I cannot seem to find the "virus"(I dont know what the proper name is) on Studio. Please help me remove it!
Meow |
|
|
| Report Abuse |
|
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
|
| 10 Nov 2016 04:58 PM |
VirusNames = {'Lag', 'HaxLager', 'NoobyVirus', 'ProperGr'} VirusesRemoved = 0
function check(name) for i,v in pairs(VirusNames) do if v == name then return true end end return false end
function DestroyMaliciousObjects(input) for i,v in pairs(input:GetChildren()) do if check(v.Name) then v:Destroy() end if #v:GetChildren() > 0 then DestroyMaliciousObjects(v) end end end
DestroyMaliciousObjects(workspace) |
|
|
| Report Abuse |
|
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
|
| 10 Nov 2016 05:00 PM |
Run it in the command bar in studio.
VirusNames = {'Lag', 'HaxLager', 'NoobyVirus', 'ProperGr'} VirusesRemoved = 0
function check(name) for i,v in pairs(VirusNames) do if v == name then return true end end return false end
function DestroyMaliciousObjects(input) for i,v in pairs(input:GetChildren()) do if check(v.Name) then VirusesRemoved = VirusesRemoved + 1 v:Destroy() end if #v:GetChildren() > 0 then DestroyMaliciousObjects(v) end end end
DestroyMaliciousObjects(workspace) print('Destroyed '..VirusesRemoved..' malicious objects!') |
|
|
| Report Abuse |
|
|
caca50
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 2037 |
|
|
| 10 Nov 2016 05:35 PM |
If you don't know what the name of the script is:
Command Line:
for i,v in pairs(workspace:GetChildren())do if v:IsA'Script'then print(v:GetFullName()) end end
--That won't remove any scripts, but it will tell you where all scripts are, and you can locate the script yourself. |
|
|
| Report Abuse |
|
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
|
| 10 Nov 2016 05:42 PM |
That'll only show the scripts in plain sight...
This would be what you want to use:
function GetScriptLocation(input) for i,v in pairs(input:GetChildren()) do if v:IsA'Script' or v:IsA'LocalScript' then print(v:GetFullName()) end if #v:GetChildren() > 0 then GetScriptLocation(v) end end end
GetScriptLocation(workspace) |
|
|
| Report Abuse |
|
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
|
| 10 Nov 2016 05:44 PM |
| But the thing is the lag scripts don't always just leave behind scripts they can leave any object that exists. Most of the time they leave behind weld objects or other things that don't show up in workspace but make the user have to load more and it'll spam them until the game will crash. |
|
|
| Report Abuse |
|
|
caca50
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 2037 |
|
|
| 10 Nov 2016 07:23 PM |
Whoops, I messed up.
Command Line:
local function Check(x) for i,v in pairs(x:GetChildren())do if v:IsA'Script'then print(v:GetFullName()) end Check(v) end end Check(workspace) |
|
|
| Report Abuse |
|
|
|
| 10 Nov 2016 08:04 PM |
| why r u telling this noob how to copy and paste to get rid of free model viruses |
|
|
| Report Abuse |
|
|
caca50
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 2037 |
|
|
| 11 Nov 2016 10:01 AM |
| He said it's a group game, I'm just assuming someone other than him managed to get a virus in there |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2016 11:31 AM |
| He is probably using free models. People lately have be infecting scripts, the best way to avoid this problem is: to stop using free models. |
|
|
| Report Abuse |
|
|
dalekcats
|
  |
| Joined: 04 May 2013 |
| Total Posts: 57 |
|
|
| 11 Nov 2016 05:17 PM |
Avoiding it is not the issue. The issue is that Free models from other games and the game that I did not add have viruses and I need them removed. Using find, I have found the proper grammar virus, but I cant delete scripts using find.
Meow |
|
|
| Report Abuse |
|
|
caca50
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 2037 |
|
|
| 11 Nov 2016 05:19 PM |
| Use my code, check the scripts that you don't recognize, and remove it if it is the problem |
|
|
| Report Abuse |
|
|
dalekcats
|
  |
| Joined: 04 May 2013 |
| Total Posts: 57 |
|
|
| 12 Nov 2016 07:59 AM |
I was able to remove the virus contents
Meow |
|
|
| Report Abuse |
|
|