local x = 15 -- scope is script-wide, x can be accessed anywhere inside of this script
local first = true -- first can only be accessed throughout a()'s code block
local second = 123 -- can only be accessed within this if statement
print(second) -- Output: 123
print(second) -- nil, cannot access that variable anymore
print(first) -- Ouput: true | we can access this variable since we're still inside of the function's code block