function FpsCamera.SetupTransparency(R,z,...)assert(R~=FpsCamera)R:BaseSetupTransparency(z,...)if R.AttachmentListener then R.AttachmentListener:Disconnect()end R.AttachmentListener=z.DescendantAdded:Connect(function(z)if z:IsA("\065\116\116\097\099\104\109\101\110\116")and R.HeadAttachments[z.Name]then R.cachedParts[z.Parent]=true R.transparencyDirty=true 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
			self.cachedParts[obj.Parent] = true
			self.transparencyDirty = true
		end
	end)
end

