Copy an effect from one layer to another

How do I copy an effect from one layer to another? copy and paste doesn’t work, and there is nothing when right clicking