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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Roblox's performance bugs

Previous Thread :: Next Thread 
superalin98 is not online. superalin98
Joined: 27 Jun 2011
Total Posts: 116
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
30 Jun 2013 09:08 AM
When was that possible?!

The Unwise Wizard of Scripters has spoken.
Report Abuse
AbsoluteLOL is not online. AbsoluteLOL
Joined: 01 Dec 2012
Total Posts: 3939
30 Jun 2013 09:23 AM
@digpoe;
You could do that?
Holy mother, time for an efficiency check.
Report Abuse
As8D is online. 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
superalin98 is not online. superalin98
Joined: 27 Jun 2011
Total Posts: 116
03 Jul 2013 03:21 AM
Thanks, i actually used an anti-virus plugin from lualearners and found em out.

Report Abuse
lucas1234roblox is not online. lucas1234roblox
Joined: 11 Dec 2011
Total Posts: 969
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
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