I have a module like this:
local M = {} M.num = 0 return M
In another file, I want to do this:
local module = require("M") -- Name of the module file module.num = 10
In a third file when I check “module.num” it’s back to 0 again. What I’m trying to do is create some sort of " Constant" variable to hold the current highscore, unlocked levels, etc.