generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Virus in game

Previous Thread :: Next Thread 
iVerde is not online. 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
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
30 May 2015 11:14 PM
You would be able to do both,

"I like to program." - Bosswalrus
Report Abuse
TimeTicks is not online. 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 is not online. 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 is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
30 May 2015 11:19 PM
sure try that
Report Abuse
iVerde is not online. 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
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
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 is not online. iVerde
Joined: 02 Nov 2013
Total Posts: 444
30 May 2015 11:23 PM
>.> i remember you
Report Abuse
iVerde is not online. iVerde
Joined: 02 Nov 2013
Total Posts: 444
30 May 2015 11:24 PM
idk if i should trust yew m9
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
30 May 2015 11:25 PM
what's the worse that could happen?
Report Abuse
iVerde is not online. 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
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
30 May 2015 11:28 PM
Just put it into the command bar while your game isn't running.
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
30 May 2015 11:28 PM
And make sure that you put the names of the viruses in the table.
Report Abuse
iVerde is not online. 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
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
30 May 2015 11:32 PM
Yes.
Report Abuse
iVerde is not online. iVerde
Joined: 02 Nov 2013
Total Posts: 444
30 May 2015 11:33 PM
I pasted it in there and nothing :p
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image