Add in debug.logs to every conditional to find out where exactly this is getting stopped. Check the code immediately after the last debug.log that’s firing and check it closely for any sort of problems.
This is the fundamental way that people go about debugging their own code. In this case though, I’ll give you a hint: where exactly are you using Animation.Play in this script?
EDIT: Wait patiently for help to come, do not bump 12 minute old posts.
And if you’re expecting that pressing Q should play the animation, then Animation.Play should probably be in the conditional statement for “pressing Q” right? Cause and effect- how’s it supposed to know when to play? You have to tell it. If you put “play” in the Start, then it’s going to play on start, but that’s all, because that’s the only place you have “play”, right?
I’m no longer responding until you put Debug.Logs every 2 lines in your code and can tell me, with certainty, how far it’s getting when you press Q. I’m getting tired of mentioning it in every thread you post and receiving no response.
2: I have absolutely no idea what AnimationHi is, because it’s not defined in this code snipped you’ve posted. I’m pretty confident that whatever it is, however, that it isn’t running Animation.Play. If you want an animation to Play, you need to actually PLAY IT.