How would I detect when a player has an active effect?

I want to tell when a player is using a certain effect, but all other method I found don't work 😭

Continue to help post