How do take profits work?

I keep seeing people saying that that their trade hit take profit number X Y Z whatever but I dont understand how that works. Isnt the TP just a point where you literally take everything out of the trade once the price reaches that point?