Hunger or thirst effect

Hi everyone! I’m looking for a scripted way to have that blurry, wobbly effect when hunger or thirst gets too low and you’re about to die. Some advice?