Maybe you were looking for...

How to give a certain mob levitation if it is in a 6-block radius?

(I have the scoreboard set up, use "Levi" for it in comments) Example: I hold a stick. All creepers in a 6 block radius around would get Levitation until I sto