Hello,
i try import variable from lua file. For exhample (in resources server scripts):
“a.lua”
value = "Hello World"
“b.lua”
require "a.lua"
print(value)
and error:
Error loading script a.lua in resource test: @test/a.lua:1: attempt to call a nil value (global 'require')
stack traceback:
@test/a.lua:1: in main chunk
Failed to load script a.lua.
Thanks for any help