Script Animation Problem

Hi everyone,
I come to you because I have a problem with a script.
I imported this script into a blank scene for testing and I got this error message?
I wanted to know where this could come from because I have another scene that features this script and this one works perfectly.
Capture d’écran 2023-02-06 à 09.57.34