There’s a scene in the game where you have to shine a flashlight at a ghost. If you want the good ending, you need to keep catching her with the light ( basically, find her around the room and point the flashlight at her all the time). But if you want the bad ending, you have to let her catch you (you can just do nothing). Sorry for the late reply, hope this helped🥹