Why doesn't my script work?

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.

try indexing the object instead of the module script

local mod = require(game.ReplicatedStorage.ModuleScript)
local newMod = mod.new("Green")
- print(mod.Color)
+ print(newMod.Color)

oh well I’m dumb, it does work properly now.