collison hit

how can i make a collision attach to a odject that when my player hit it ,destroy it