I dont have this script but the tutorial i was watching said its included in unity, so how do i get it, i have the standard assets, tried re-importing, i dont know what else to try does anyone have it or know how i can get it?
To destroy an object after a period of time just do this:
Destroy(someGameObject, 100);//Destroy the game object in 100 seconds.