How do I instantiate on the game object's position that i put the script on

ok so i am instantiating an object in a .js script

i made an empty game object so it can be my spawn point

i threw the script on the game object and no matter what i do it is just instantiating in the middle of the world

here is the last thing i tried:

var currentPosition = Vector3(transform.position.x, transform.position.y, transform.position.z)

function Update () {
     var instance : GameObject = Instantiate(Resources.Load("fake toy"), currentPosition, transform.rotation);
}

I would’nt use instantiate in the update function as you’re creating a new object every frame. Anyways, below that just write something like this:

var instance : GAmeObject = Instantiate(...);

instance.transform.position = currentPosition;