Whats wrong with my script?

if the animation works you can ignore the error but if not you need to change it sadly