How do I use TouchEnded for a specific thing to stop touching the part?

I want to detect if a part is not being touched by a part it was touching. I don’t know how though.