Flying
Whenever this creature attacks, you may pay {X}{R}. If you do, it deals X damage to any target.
You choose the target when the ability triggers. When the ability resolves, you choose a value for X and decide whether to pay {X}{R}. If you do decide to pay {X}{R}, it's too late for any player to respond since the ability is already in the midst of resolving.