It’s hard to tell, but I know the BP you see there works. I’m assuming there is something else running on your side that makes it not working.
Try applying this code to another Blueprint with a simple Cube on it and make it work. Then you can figure out what is the problem with your character.