State machine animation wont transition from idle to run because speed variable is always at 0 even when moving?

How do you set that speed variable? Do you get the character’s velocity, get it’s vector length and set it to a float type variable continuously after Event Tick? And how do you transfer it to your animation blueprint? By casting to the character blueprint, getting that speed variable and setting it to another variable in your animation blueprint after Event Blueprint Update Animation?