Question: how can I pass a value from `a.lua` to `b.lua`?

let us say that in my `a.lua` i have this code of variable.

```
local value = "Hello WOrld!"
director:changeScene ("b")

```

my problem is that how can i pass `value` from `a.lua` to `b.lua`?

thanks in advance....

Answer: 
When you declare something local you are explicitly telling Lua NOT to share it between scripts. Just create a non-local variable instead:

```
value = "Hello World"

```

In b.lua File Simply Require the a.lua file and use it e.g In b.lua File

```
local a_File  = require "a"
print(a_File.value)

```

You will get the output as 

```
"Hello World"

```
using director API we transfer a value to another lua file is easy. and it send data in table or array type

below code is usefull..

**from a.lua file**

```
data="hellow"
director:changeScene({data},"levelroom")

```

**from b.lua file**

```
module(...,package.seeall)
new=function(params)
   localGroup=display.newGroup()
   data=params.data
   print(data)         --output:hellow
   return localGroup 
end

```