The error message is unrelated! Please place the flashlight controller object inside the main camera in the scene, then set the location and rotation of the flashlight controller object to zero, and then move the flashlight controller out of the main camera. Please let me know if it's better then!