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: what causes scripts to slow down over time?

Previous Thread :: Next Thread 
ext3 is not online. ext3
Joined: 28 Dec 2012
Total Posts: 310
07 Apr 2013 09:33 AM
i noticed that after a while the wait() times in scripts become longer and longer than the actual specified wait time over a period of time

does anyone know why this happens ??
Report Abuse
THEBobMcBobbingston is not online. THEBobMcBobbingston
Joined: 26 Feb 2011
Total Posts: 123
07 Apr 2013 09:34 AM
Lag.
Report Abuse
ext3 is not online. ext3
Joined: 28 Dec 2012
Total Posts: 310
07 Apr 2013 09:35 AM
but what causes it?
the game itself isn't lagging; none of the players say they have any lag yet the scripts are still slowing down
Report Abuse
THEBobMcBobbingston is not online. THEBobMcBobbingston
Joined: 26 Feb 2011
Total Posts: 123
07 Apr 2013 09:36 AM
Lag.

It has to send information to the clients & back.
There's going to be lag.

So I'd say it's lag.
Report Abuse
ext3 is not online. ext3
Joined: 28 Dec 2012
Total Posts: 310
07 Apr 2013 09:36 AM
but the physics aren't lagging and all the lagging scripts are localscripts
Report Abuse
THEBobMcBobbingston is not online. THEBobMcBobbingston
Joined: 26 Feb 2011
Total Posts: 123
07 Apr 2013 09:37 AM
@Ext,

I think they still send information to the server.
Report Abuse
ext3 is not online. ext3
Joined: 28 Dec 2012
Total Posts: 310
07 Apr 2013 09:38 AM
they aren't
wiki says that localscripts run on the clients and all of the objects that im performing actions are are also running on the clients since they're inside the local camera
Report Abuse
ext3 is not online. ext3
Joined: 28 Dec 2012
Total Posts: 310
07 Apr 2013 09:39 AM
performing actions on*
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
07 Apr 2013 09:39 AM
They have to replicate to the server. It's a networking problem.
Report Abuse
ext3 is not online. ext3
Joined: 28 Dec 2012
Total Posts: 310
07 Apr 2013 09:41 AM
oh
okay

do you have any tips on decreasing lag?
my game is heavily reliant on wait()s so this problem cripples it
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
07 Apr 2013 09:45 AM
Try using different things, like events.
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