How to implement AoE stun

how would I go about implementing an area of effect stun to enemies when the right mouse button is clicked?

If you’re not using a main structure and it’s just one individual spell/ability, then you could use Unity - Scripting API: Physics.OverlapSphere to find out what object is in range, then apply the stun