Hi all does anyone know a script Like when i kill the boss he drops an Object i tryed to make a script but it didn’t work 
Like this…
//What Object will it spawn
var Object : Transform ;
function Update () {
if gameObject.Destroy;
Spawn.Object(“Ball”);
}
Can you give me the Script Plaese…
var ball : Transform;
var Boss : Transform;
function Update ()
{
if(health == 0)
{
Instantiate(ball, Boss.position, Boss.identity);
Destroy(Boss);
}
}
that is a general idea of what it should look like.
also, you might want to actually learn how to script in Unityscript, it has specific keywords. You were using words that werent part of the language.