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 » Scripters
Home Search
 

Re: Noobie Scripting Question

Previous Thread :: Next Thread 
rapidMax is not online. rapidMax
Joined: 13 Jul 2015
Total Posts: 35
16 Jul 2015 11:00 PM
What does "local mean"?
Report Abuse
iSpecializinq is not online. iSpecializinq
Joined: 31 May 2015
Total Posts: 2182
16 Jul 2015 11:01 PM
makes it only accessable in that environment (i know its a diff word, brain block)
Report Abuse
gooey333 is not online. gooey333
Joined: 24 Mar 2013
Total Posts: 1208
16 Jul 2015 11:06 PM
For example...

local a = 3

if a == 3 then
print(a) -- 3
--but
local b = 5
end

print(b) -- nil

--outside if you can't print b
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
16 Jul 2015 11:08 PM
local is a variable which is accessible to is environment, how you say "local" to that part of code block


function printthis()
local a = "It is very real"
print(a) -- It is very real"
end

print(a) -- nil
Report Abuse
gooey333 is not online. gooey333
Joined: 24 Mar 2013
Total Posts: 1208
16 Jul 2015 11:09 PM
@above

That didn't explain a local variable vs a normal variable
Report Abuse
gooey333 is not online. gooey333
Joined: 24 Mar 2013
Total Posts: 1208
16 Jul 2015 11:10 PM
Well ok it did, but not very clearly
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