Hud Text that is only shown during certain conditions

How would I create a rule that creates HUD text that is only shown when the player is on Doomfist and is using Ability 1?

I’ve been trying to use arrays but nothing is working for me.

Event
Ongoing - Each Player

All

Doomfist

Condition
Is Using Ability 1(Event Player) == True

Action
Create HUD Text(...)

Set Player Variable(Event Player, A, Last Text ID)

Wait Until(Is Using Ability 1(Event Player) == False, 99999)

Destroy HUD Text(Player Variable(Event Player, A)


This should work. You create a text when DF uses Ability 1 and save it in a variable. Then, when he is not using the ability, destroy the text.