keep going up!

i want to program a death barrier that goes up when you go up but stops when you fall or go down

Do you have a game started that you need help with? Or are you looking for suggestions on how to program that barrier?

suggestions of how to program that barrier