Unity scripts not after restarting the scene

Hello. I also have the following problem, I start the game in play mode and when I press the button to restart the scene, the scripts no longer work. They are not disabled, nothing.
YouTube video: https://youtu.be/OD9KCmGuZDg