The Talmud in Sotah 42 says four groups do not receive the Shechina (divine presence) in the next world. One of these is the group of "letzim" (jesters).
What is considered bad letzanut? I assume some form of joking is permitted and emotionally beneficial to humans. Where does one draw the line in this?