Is there a way to Export a Costume with Code?

What's problem you are encountering?
I need a block or a script that will export a costume of the current sprite to my computer. Sort of like a code alternative for right-clicking a costume and pressing export.
image
(also, I don't mind if it has JS, I'll only use this for personal use.)
If you can help, it will be greatly appreciated. Thank you very much in advance!

I found this on the forum for you:

Thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.