I found out that this is an error in the editor, when the game is built, the flashlight works normally