Mean squared displacement

"

Hi,

If I want to obtain the MSD of  molecules in water, do I need to define set for the whole molecule or just any atom in the molecule. If I just define set for the atome, does this mean that the MSD I get represent the molecule. I try to define set for the whole molecule but failed.

Thank you.

"