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: 
Assign the value to the global table (`_G`), like this:

```
_G.value = "Hello WOrld"

```

In another script, you can then do this:

```
value = _G.value

```
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"

```