--Interface

function draw_invincibility:Enable()
	--Enable trails
	for _,v in pairs(self.particles) do
		v.Enabled = true
	end
	self.en_time = self.part_time
	self.enabled = true
end

function draw_invincibility:Disable()
	--Disable trails
	for _,v in pairs(self.particles) do
		v.Enabled = false
	end
	self.enabled = false
end

function draw_invincibility:Draw(dt, hrp_cf)
	if not self.enabled then
		self.en_time -= dt
	end
	if self.en_time > 0 and hrp_cf ~= self.hrp_cf then
		--Set invincibility CFrame
		self.invincibility:SetPrimaryPartCFrame(hrp_cf)
		self.hrp_cf = hrp_cf
	end
end

function draw_invincibility:LazyDraw(dt, hrp_cf)
	if not self.enabled then
		self.en_time -= dt
	end
	if self.en_time > 0 and hrp_cf ~= self.hrp_cf then
		--Set invincibility CFrame
		self.invincibility:SetPrimaryPartCFrame(hrp_cf)
		self.hrp_cf = hrp_cf
	end
end

return draw_invincibility
