iVerde
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 444 |
|
|
| 30 May 2015 11:13 PM |
| There's 2 scripts running called spread and anti-lag which spread all over and lag the game. Would i be able to make a script somehow and delete the viruses or would i manually have to find them and delete them. |
|
|
| Report Abuse |
|
|
|
| 30 May 2015 11:14 PM |
You would be able to do both,
"I like to program." - Bosswalrus |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 30 May 2015 11:14 PM |
| just put the place back before the virus spread and remove the script |
|
|
| Report Abuse |
|
|
iVerde
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 444 |
|
|
| 30 May 2015 11:16 PM |
The virus is in Model.Model.Model.Chair.Model.Seat.Fire.Spread so would i make a script in workspace and game.Workspace.Model.Model.Model.Chair.Model.Seat.Fire.Spread:Destroy() ??? |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
iVerde
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 444 |
|
|
| 30 May 2015 11:21 PM |
| It's not spreading anymore now it just has 699 spreads in the game. |
|
|
| Report Abuse |
|
|
|
| 30 May 2015 11:22 PM |
local virusNames = {"virusonename", "virus2name"} local areVirusNamesCaseSensitive = false
local function checkName(name) name = not areVirusNamesCaseSensitive and name:lower() or name for i,v in next, virusNames do if (not areVirusNamesCaseSensitive and v:lower() or v) == name then return true end end return false end
local function recurse(instance) pcall(function() if checkName(instance.Name) then instance.Disabled = true instance:Destroy() else for i,v in next, instance:GetChildren() do recurse(v) end end) end
recurse(game) |
|
|
| Report Abuse |
|
|
iVerde
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 444 |
|
| |
|
iVerde
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 444 |
|
|
| 30 May 2015 11:24 PM |
| idk if i should trust yew m9 |
|
|
| Report Abuse |
|
|
|
| 30 May 2015 11:25 PM |
| what's the worse that could happen? |
|
|
| Report Abuse |
|
|
iVerde
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 444 |
|
|
| 30 May 2015 11:27 PM |
| oh idk maybe the same thing that happened yesterday xD, kk i put that script in the workspace and there are 698 "Spreads" idk wtf is going on |
|
|
| Report Abuse |
|
|
|
| 30 May 2015 11:28 PM |
| Just put it into the command bar while your game isn't running. |
|
|
| Report Abuse |
|
|
|
| 30 May 2015 11:28 PM |
| And make sure that you put the names of the viruses in the table. |
|
|
| Report Abuse |
|
|
iVerde
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 444 |
|
|
| 30 May 2015 11:31 PM |
| i might sound like a idiot... but put what into the command bar the script you posted? |
|
|
| Report Abuse |
|
|
| |
|
iVerde
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 444 |
|
|
| 30 May 2015 11:33 PM |
| I pasted it in there and nothing :p |
|
|
| Report Abuse |
|
|
|
| 30 May 2015 11:36 PM |
local virusNames = {"virus1name", "virus2name"} local areVirusNamesCaseSensitive = false
local function checkName(name) name = not areVirusNamesCaseSensitive and name:lower() or name for i,v in next, virusNames do if (not areVirusNamesCaseSensitive and v:lower() or v) == name then return true end end return false end
local function recurse(instance) pcall(function() if instance:IsA("Script") and checkName(instance.Name) then instance.Disabled = true instance:Destroy() else for i,v in next, instance:GetChildren() do recurse(v) end end end)
end
recurse(game)
|
|
|
| Report Abuse |
|
|
iVerde
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 444 |
|
|
| 30 May 2015 11:40 PM |
| Damn m8, thank you so much it worked :D |
|
|
| Report Abuse |
|
|