First go to the health section of the project. Then click the costume tab and upload the icon frames (ps if you upload an animated icon from an existing mod like glitched legends you'll have to resize it like around 50 x 40 or something idk otherwise it'll look weird). then go back to the code. depending on what character you want to replace their icon as (pico, bf, etc), you have to add in a code script: repeat [insert number of frames be sure to put it down by 1 otherwise it'll show a frame that's not in your icon], next costume, and wait 0.01 seconds. then put that code under the block that says switch costume.
hopefully it's not confusing!