The text is a proverb expressing the idea that people prefer to be around others who are happy and positive, rather than those who are sad. It does not exploit different meanings of a word or similar-sounding words for humorous effect.
Laugh and the world laughs with you , cry and you cry alone .