Screaming baby

My baby is 10 months old always he would play alone in his playpen go to sleep n was happy but now he is crying when he doesn’t see me in the same room or when I go to the washroom n go out of sigh what is wrong ...?????