From the Super Mario Wiki
Retrieved from "https://www.mariowiki.com/index.php?title=Vanish_Cap&oldid=2391868"
The Vanish Cap is a cap found in Super Mario 64. When worn, it turns Mario temporarily into Vanish Mario. In this form Mario can walk through metal fences and certain walls. Mario must first press the blue Cap Switch in the course Vanish Cap Under the Moat in order to activate the blue Cap Blocks which contain vanish caps. The effect lasts for 20 seconds.
In Super Mario 64's remake, Super Mario 64 DS, Luigi gains the ability to become immaterial when he picks up a Power Flower, but the Vanish Cap itself is absent. Its music is the same as the Wing Cap music.