See inside to use the code. To export into your backpack, click "See inside," click "backpack" (under the code), drag the sprite "Eyelids" into the space that opened up, click on the sprite "Everything" / "Else" and drag both scripts into the same space. Import into your project: Open your project and click "backpack," drag "Eyelids" into the sprite area, and then drag the code onto every sprite visible when the eyes open or close.
This is a tool I'm providing @-EA_Reanimated- but any of you can use it! Credit would be nice but not necessary.