The text is a proverbial expression conveying the idea that a positive attitude can lead to positive outcomes, while negativity is often faced alone. It does not play on different meanings of a word or similar-sounding words.
Smile , and the world smiles with you ; cry , and you cry alone .