Edited the script slightly. This idea could also be used for a block that vanished if you examine it with a certain item in your inventory. Could also work for Npcs that move aside whenever you speak to them and have an item. Really, there are tons of things this could do.