Trouble with changing animations in a global Variable for player

So I have decided to rework my original code. The old way was just a nightmare to navigate so I decided to put all the everything into structures and global variables. So my character rolls in the original code fine. Everything is working fine except for one thing. The roll animation the script works but for some reason the animation does not want to play fully and stops at the beginning and never finishes. When I release the pressed button everything works like it should except for this one animations. I have been screaming at the code for the past 4 hours wondering why this works with everything else but not the this one.

Code below first one is the new way the second is the old.