player collides with gameobject that has tag

im looking for a simple script that when the player collides with a gameobject that has a tag like "Enemy" the game will end or something. plizzz help

I'm only helping because you said 'plizzz' :) (Just kidding - you don't have to say 'please help'. Just about everyone who posts here is looking for help in some form or another, so saying 'please help' is redundant.)

Anyway, for this you'll want to use one of the collision callbacks, such as OnCollisionEnter() or OnControllerColliderHit(). Here's what the code might look like using the former (I'll give UnityScript a try, but no guarantees of correctness):

function OnCollisionEnter(collision : Collision)
    if (collision.gameObject.tag == "Enemy") {
        Debug.Log("End the game or something.");