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 » Scripting Helpers
Home Search
 

Re: Stupid Infection Problem

Previous Thread :: Next Thread 
Vulnerite is not online. Vulnerite
Joined: 05 Nov 2007
Total Posts: 11492
28 Sep 2014 12:11 AM
so i have this Athens city right

i didn't make it though i'm making new stuff for it

i have a problem

due to the original creator having a bad habit of a few free models (not most stuff but some)

and the idiot scripters of "infections"

while testing my IRL time thing, i discovered an error with a fire spread script in a model in workspace

there are tons and tons and tons of models, so i wrote a recursive function to go through workspace and destroy them and entered it into the command line

when i did i got a stack overflow error after it froze for a bit, is this cuz of how many models there are?
Report Abuse
cole7778 is not online. cole7778
Joined: 19 Nov 2009
Total Posts: 7827
28 Sep 2014 12:18 AM
#1
Don't use free models

#2
Don't steal peoples places

d00d
Report Abuse
Vulnerite is not online. Vulnerite
Joined: 05 Nov 2007
Total Posts: 11492
28 Sep 2014 12:19 AM
yes because i obviously stole this place and it totally wasnt made for my group


your logic is amazing
Report Abuse
cole7778 is not online. cole7778
Joined: 19 Nov 2009
Total Posts: 7827
28 Sep 2014 12:20 AM
#3
Build your own stuff

d00d
Report Abuse
beltgirl18 is not online. beltgirl18
Joined: 23 Jun 2013
Total Posts: 16
28 Sep 2014 03:10 AM
I use
http://www.roblox.com/Ro-Defender-Plugin-v8-2-item?id=142273772
and http://www.roblox.com/Virus-Scanner-Anti-Virus-item?id=167126759
They work very well. I'm pretty crap at scripting, so I'll use models everyone in a while, and of course everyone I choose has a virus. Using these two got rid of them fairly quickly, and I haven't had a problem since.
Report Abuse
Obscurely is not online. Obscurely
Joined: 30 May 2013
Total Posts: 1216
28 Sep 2014 03:13 AM
Those two plugins will lag your game, but they will help.
Just delete them when the viruses are gone.
Report Abuse
ohno1112 is not online. ohno1112
Joined: 23 Mar 2013
Total Posts: 833
28 Sep 2014 05:23 AM
In browser, open view->start page, then paste this link in the URL bar

http://www.roblox.com/Anti-Virus-tool-item?id=174128742

once installed, restart studio and you will have the anti-virus in your plugin browser. it's made to detect lag scrips like InFeCTion
Report Abuse
ohno1112 is not online. ohno1112
Joined: 23 Mar 2013
Total Posts: 833
28 Sep 2014 05:24 AM
*in studio, not browser
Report Abuse
ohno1112 is not online. ohno1112
Joined: 23 Mar 2013
Total Posts: 833
28 Sep 2014 05:25 AM
@obscurely, plugins only exist in studio, they aren't rendered in-game.
Report Abuse
natth4545 is not online. natth4545
Joined: 29 May 2012
Total Posts: 365
28 Sep 2014 10:09 AM
IKR its stupid.
Report Abuse
Obscurely is not online. Obscurely
Joined: 30 May 2013
Total Posts: 1216
01 Oct 2014 01:34 AM
Actually, certain plugins do come into your game via scripts or items which destroy the virus or whatever, which you would have to delete after the virus has been removed.
If you didn't, the script would lag your game by repeatedly trying to find a virus in every block.
Report Abuse
ArbiterOfDeath is not online. ArbiterOfDeath
Joined: 20 Jun 2011
Total Posts: 1458
01 Oct 2014 01:50 AM
I think I once made a looping searcher, but I forgot where it was. I'll make another here.

local function search(unprocessed, class)
local results = {}
while #unprocessed > 0 do
local current = unprocessed[#unprocessed]
unprocessed[#unprocessed] = nil
if current:IsA(class) then
results[#results + 1] = current
end
for i, child in next, current:GetChildren() do
unprocessed[#unprocessed + 1] = child
end
end
return results
end

local scripts = search({Workspace, game:GetService("ServerScriptService"), game:GetService("StarterGui"), game:GetService("StarterPack"), game:GetService("ReplicatedStorage"), game:GetService("ReplicatedFirst")}, "Script")

for i, s in next, scripts do
s.Disabled = true
s.Parent = game.Lighting
end
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
01 Oct 2014 01:54 AM
while game:FindFirstChild(InfectionName,true) do game:FindFirstChild(InfectionName,true):Destroy()
end


change InfectionName to the InfectionName
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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