Stun ability not working against enemies

I am currently coding a stun ability that allows the player to press T and stun all enemies within a certain radius. I believe the issue is with the behavior tree/blackboard. I used print string nodes to indicate if the enemy(s) are within the stun radius when the player presses T. That seems to work fine. The problem is actually stopping them in their tracks when they get stunned. Currently, I am getting the AI controllers of the enemies within the stun sphere and using a “set value as bool.” In the behavior tree, I use a wait task that executes if the “isStunned” key is set. I have a feeling that the the main issue is setting the “isStunned” key.

Turns out I had to set the value of the “isStunned” variable (found in the stun function) and set the default value of it to “isStunned”