When I try to access functions inside other script, don’t work.
-- I dont now why dont work
local my_script = require"my_script"
function init(self)
my_script.fuction_1_inside_my_script()
end
But when I just write like this works.
-- this works
require "my_script"
function init(self)
fuction_1_inside_my_script()
end
I try different ways, like adding the scripts in one single folder and write: require “scripts.my_script” but don’t work. If I add the line "local my_script = "…