--Constructor and destructor

function draw_invincibility:New(holder)
	--Initialize meta reference
	local self = setmetatable({}, {__index = draw_invincibility})

	--Create model instance
	self.holder = holder

	self.invincibility = models:WaitForChild("Invincibility"):clone()
	self.particles = self.invincibility:WaitForChild("RootPart"):WaitForChild("Invincibility"):GetChildren()
	self.invincibility.Parent = self.holder

	--Initialize state
	self.enabled = false
	self.hrp_cf = nil
	self.en_time = 0
	self.part_time = 0
	for _,v in pairs(self.particles) do
		self.part_time = math.max(self.part_time, v.Lifetime.Max)
	end

	return self
end

function draw_invincibility:Destroy()
	--Destroy model instance
	self.invincibility:Destroy()
end
