Checking if a metatable already exists

Basically what I want is that if an metatable already exists then I would not use something like module.new()

Here is an simple OOP Module:

local module = {}
module.__index = module

function module.new()
	local BallStats = {}
	BallStats.PickUp = false
	BallStats.StealDelay = 1.5
	BallStats.BallHandler = ""
	BallStats.Power = 75
	
	return setmetatable(BallStats, module)
end

return module

Maybe you’re looking for getmetatable?

getmetatable(value) ~= nil

exactly! but what is value? the metatable we are getting?

Whatever the metatable you’ve setted (unless the __metatable field is present, then it’ll get that value), if there isn’t any, it’ll be nil.
You can easily search this up: Programming in Lua : 13