If you have a covered litter box and your cat is hesitant to walk inside it, try removing the cover.
Your cat might prefer a covered litter box, so if you are using an uncovered box, try replacing it with a covered one.