Instantiate issues

hi guys

i am working on 2D ranged character attack, i can instantiate a prefab but its origin point is center of the player. i want to prefab origin in front of the character rather than inside of him
here are my two codes

if (Input.GetKeyDown("f")) {
 	attackRange();
 	

 	}

function attackRange () {
 	
 	Instantiate(rangeattackPrefab, this.transform.position,this.transform.rotation); 

Playerattack.js

var fireAttackSpeed : float = 1.0;   

 
function Update () {
 
 
 
// prefab moves right side
this.transform.Translate(Vector3.right * fireAttackSpeed);

}

Instantiate(rangeattackPrefab, **this.transform.position**,this.transform.rotation);

You can modify the position you instantiate the object at. For example you can do:
`

this.transform.position + new Vector2(0,2)

`

To apply an offset from the parent, ofcourse this must be modified to fit your needs.

If your character uses scale flipping to face right or left, you can multiply the Vector with the characters scale to adjust the offset based on the way the character is facing.