|
| 30 Jun 2013 03:41 AM |
I actually optimized my scripts from game and used for the first time script performance bar from roblox. After 1 minute, it appear a script named 'Spread' and there was 324 clones of thease scripts! Roblox could fix this and improve any game's performance by at least 1.5x.
My Question: How it appeared?
I saw before some 'Spread' scripts, they give a fire to every touching part, but, 324??? So, now i know why my fire don't work in game :/ |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 30 Jun 2013 03:44 AM |
| You used a free model. It contained a piece of code that replicated itself to everything. You should get some anti-virus models. |
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 30 Jun 2013 04:20 AM |
^
Most anti-virus scripts are either broken, have never worked, or a virus themselves.
Instead run a command like this:
function mainLoop(obj) for _, v in pairs(obj:GetChildren()) do if obj.ClassName == "VirusClassnameHere" and obj.Name == "VirusNameHere" then obj:Destroy() return end if v.ClassName == "VirusClassnameHere" and v.Name == "VirusNameHere" then v:Destroy() else mainLoop(obj) end end mainLoop(Game)
If that works... |
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 30 Jun 2013 04:22 AM |
| In your case actually, you may want to check if obj:FindFirstChild("Spread") and obj.ClassName == "Fire" instead, or the fire will still be there (though invisible) |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 30 Jun 2013 04:26 AM |
better (I believe): while wait(0.03) do Delay(0, function() game:FindFirstChild("Spread", true):Destroy() end) end
|
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 30 Jun 2013 04:28 AM |
>game:FindFirstChild("Spread", true)
omg fuuuuuuuuuu I forgot you could do that |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2013 09:08 AM |
When was that possible?!
The Unwise Wizard of Scripters has spoken. |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2013 09:23 AM |
@digpoe; You could do that? Holy mother, time for an efficiency check. |
|
|
| Report Abuse |
|
|
As8D
|
  |
| Joined: 24 Dec 2009 |
| Total Posts: 2907 |
|
|
| 30 Jun 2013 09:34 AM |
Make it flexible? Also, the code below has no guarantee. I haven't tested it, and it might do unwanted stuff like removing AI scripts ect.
local names = {} local ignore = {Animate = true}
local function sumNames(parent, noReset) for k, v in pairs(parent:GetChildren()) do if v:IsA("BaseScript") or v:IsA("Fire") or v:IsA("JointInstance") and not ignore[tostring(v)] then names[tostring(v)] = names[tostring(v)] and names[tostring(v)] + 1 or 1 end sumNames(v, true) end end
function runScan() sumNames(workspace) for k, v in pairs(names) do if v > 5 then while workspace:FindFirstChild(k, true) do workspace:FindFirstChild(k, true):Destroy() end end end end
runScan()
- As, blah why do I sleep upsidedown on a roof. Dunno. |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2013 03:21 AM |
Thanks, i actually used an anti-virus plugin from lualearners and found em out.
|
|
|
| Report Abuse |
|
|
|
| 17 Apr 2015 05:26 PM |
Hey there, 'Re: Roblox's performance bugs' is not allowed on ROBLOX. I'll let this one slide for now but please inform yourself with the rules and regelations of roblox http://www.roblox.com/info/terms-of-service - Updated bumpbot. |
|
|
| Report Abuse |
|
|