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 » Club Houses » Clans & Guilds
Home Search
 

Re: an unclear script tip: always use local variables

Previous Thread :: Next Thread 
Unclear is not online. Unclear
Joined: 27 Aug 2011
Total Posts: 17060
31 Mar 2015 12:47 PM
local variables are stored directly in the lua virtual machine which is the quickest lookup table lua has to offer rather than accessing the global environment it merely refers to the virtual machine stack first and pulls out the local variable however it must be noted that all environments have a local variable limit of 200 so i would advise using a do end block in order to give you more environments to use more local variables for
Report Abuse
CoejoeTheGreat is not online. CoejoeTheGreat
Joined: 25 Apr 2012
Total Posts: 23886
31 Mar 2015 12:47 PM
k sir

CoejoeTheGreat, the Emperor of Fire Warriors Clan
Report Abuse
headcounts is not online. headcounts
Joined: 20 Feb 2011
Total Posts: 5958
31 Mar 2015 12:48 PM
i didn't understand at all
Report Abuse
Pragmatist is not online. Pragmatist
Joined: 17 Oct 2008
Total Posts: 16170
31 Mar 2015 12:49 PM
local poop = false

instead of

poop = false


@headcounts
Report Abuse
Pragmatist is not online. Pragmatist
Joined: 17 Oct 2008
Total Posts: 16170
31 Mar 2015 12:49 PM
learn more about local/global scopes as well!!!
Report Abuse
SilentSwords is not online. SilentSwords
Joined: 22 Jun 2007
Total Posts: 27214
31 Mar 2015 12:51 PM
it really doesn't make much of a speed difference to notice

-{===>SS
Report Abuse
Auerox is not online. Auerox
Joined: 14 May 2013
Total Posts: 940
31 Mar 2015 12:53 PM
suporttt
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Clans & Guilds
   
 
   
  • 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