This script can be attached to a zone. When it is entered by the player, it adds 1 (easily changeable) life to the player's life count. It has an optional slot for a sound effect. After being triggered, the zone will disappear.
How to use:
-(Optional) Edit how many lives this script will add
-Place a zone
-Attach this script to the zone
-(Optional) Add a sound effect in the first slot
Now, when the player enters the zone, they'll gain lives equal to the amount you chose. If you leave it at the current setting (1), then they will gain 1 life.
NOTE: The number can also be changed to a negative so the player will lose that amount of lives too.