How do set float from blueprint to Animation blueprint?

Set a variable in your character BP and in the anim bp anim graph do Try Get Owner - Cast to yourcharacterBP and get the variable from there.