Mario Blocks

How would i change this code so it instantiates the power up at the blocks position with a little bounce in the air like mario? heres my code right now, but the power up either just falls or shoots reeaally high.

var Block : Transform;
var PowerUp: Transform;

function OnTriggerEnter(other : Collider){
if (other.CompareTag("Player")){
var bullit = Instantiate(PowerUp,Block.transform.position,Quaternion.identity);
		
		Destroy(gameObject);
}

}

If the PowerUp has a Rigidbody component, you could use AddForce() to add a little hop. Gravity will take care of the falling.

Well i was using AddForce(up) Or however it is scripted but it flew diagonally instead of strait up

Probably because it was striking the block you’re instantiating it inside of?

I would use iTween and punch function for this effect take a look at that.

I would use iTween as well, kinda easy.