how to make flashlight point where your looking?

Hi.
so i’m a noop at scripting but i managed to make a horror game.
the problem is that the flashlight only go lift and right.
what i want is to make it go every where like slenderman.

The easiest way is making your flashlight the camera’s child. This way you don’t have to do anything, it will move as the camera does.