Search
 
SCRIPT & CODE EXAMPLE
 

LUA

what does local mean in roblox

-- A local variable is accessible only in the block where it’s declared. 
-- Local variables are declared using the local statement:

function add(number)
	local myNumber = 50
  	myNumber = myNumber + number -- This will work because is Inside the code Block
end
myNumber = myNumber + 10 -- This wont work because we cannot access it
Comment

PREVIOUS NEXT
Code Example
Lua :: roblox number between 1 and 10 
Lua :: lua random number 
Lua :: lua get time 
Lua :: roblox check if in private server 
Lua :: check lua version 
Lua :: forever loop roblox lua 
Lua :: lua string to date 
Lua :: lua genetic algorithm 
Lua :: lua class 
Lua :: convert number to string lua 
Lua :: ex: CFrame to vector3 roblox lua 
Lua :: subsgtitute string R 
Lua :: lua stack 
Lua :: how do i use the errors module luaassist 
Lua :: Roblox Studio Mouse Shaking 
Matlab :: if directory exist matlab 
Matlab :: log base 10 matlab 
Matlab :: matlab symbolic integration 
Matlab :: octave get range length 
Basic :: watch starward ascii command 
Basic :: Loop inner fiter() 
Elixir :: elixir change map key name 
Elixir :: elixir function arity 
Scala :: foreach batch spark scala 
Scala :: map function scala 
Excel :: google sheets split cell by delimiter 
Perl :: perl postfix 
Perl :: how to initialize an array 
Powershell :: debloat window 10 
Clojure :: hello world in clojure 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =