Thank you for playing! Just to make sure my code isn't bugged, did the shrimp have yellow exclamation marks over their heads after you tried to stun them? The stun effect only triggers when the bar is fully charged.
Just tested again, I overestimated the range of the stun by a lot. :D If I am right next to shrimps they get stunned.