hey so im working on a V2 for my math module and before I post V2 I have a question on if this can be done better
local module = require(script.Parent)
local math = {}
math.__index = math
math = setmetatable(math, _G.math)
math.TestValue = module.TestValue
math.TestFunction = function(Table)
return MathModule.TestFunction(Table)
end
as you know that only works in the script I put that in
is there a way to add functions or values that you can call in any script without adding all this code in every script you need it in
like lets say I require the module with one line with the id and it sets up the module and everything
would I be able to open an empty script and use any math function or value from the module?
sorry if this is complicated ill explain more if you ware confused, this looks a bit cramped