function FpsCamera.SetupTransparency(k,w,...)assert(k~=FpsCamera)k:BaseSetupTransparency(w,...)if k.AttachmentListener then k.AttachmentListener:Disconnect()end k.AttachmentListener=w.DescendantAdded:Connect(function(w)if w:IsA("\065\116\116\097\099\104\109\101\110\116")and k.HeadAttachments[w.Name]then if typeof(k.cachedParts)=="\116\097\098\108\101"then k.cachedParts[w.Parent]=true end if k.transparencyDirty~=nil then k.transparencyDirty=true end end end)end


function FpsCamera:SetupTransparency(character, ...)
	assert(self ~= FpsCamera)
	self:BaseSetupTransparency(character, ...)
	
	if self.AttachmentListener then
		self.AttachmentListener:Disconnect()
	end
	
	self.AttachmentListener = character.DescendantAdded:Connect(function (obj)
		if obj:IsA("Attachment") and self.HeadAttachments[obj.Name] then
			if typeof(self.cachedParts) == "table" then
				self.cachedParts[obj.Parent] = true
			end

			if self.transparencyDirty ~= nil then
				self.transparencyDirty = true
			end
		end
	end)
end

