How AI can kill the player with view?

Hello,

You can just make a raycast between the Slender and the player (you should choose what part of the body seems important to be viewable by the Slender - the head ? the center of the chest ?) each frame and update a timer. When the timer has reached the duration you want, then you kill the player. If the raycast fail, then, reset the timer.