game over when play collides with object

I want some game over text to appear when my player collides with an obstacle but so far i havent found out how to get the text to reappear when it collides. here is my code so far

Try collision.gameObject.tag instead. I don’t use tags, but I’m fairly sure they’re only a part of the GameObject, not the Collider.

still doesnt work :frowning:

Nevermind all i got it to work. Thanks for the help though :slight_smile: