DogexOff, MadSpy is correct. So I won't go on more detail on his work.
I will however mention that it's poor design that your checking every tick for Lives==0. You should check if Lives == 0 only when you lose the life in the first place.
I suggest
On ObjectFoo Collides with character
-- character.life subtract 1
-- If character.life == 0
---- character.setVisible(invisible)
---- wait x
---- character.setVisible(visible)