Dart Script[FIXED]

Can someone tell me a script that when i push UP left alt a gameobject (dart i will model)spawns and destroys another gameobject be invisible and after some seconds that gameobject is visible again.[FIXED]

Posted as answer as per alucardj’s request:

You should really give it a go yourself and then come here for problems you have. If you don’t know where to start then you should do some tutorials as this is a knowledge base, not a free scripting service (not meant in a harsh way).

In response to follow up question:

Use the following line of code to enable/disable an object’s renderer (show/hide it):

renderer.enabled = true/false;