Alright, so I was scripting a module using OOP but for some reason it prints nil even though there is a metatable that includes the __index metamethod.
Code
Modulescript:
local module = {}
module.__index = module
function module.new(color2)
local newModule = {
Color = color2
}
return setmetatable(newModule, module)
end
return module
LocalScript:
local mod = require(game.ReplicatedStorage.ModuleScript)
local newMod = mod.new("Green")
print(mod.Color)
And for some reason it just prints nil.