Knocking and Clicking noises questions.

My last 318 did that after sitting a couple weeks once. Had to get it out of my buddies yard since he was moving. Anyway, after 30min of driving, the ticking went away and never came back