Changing location of a spawning prefab.

So i have this as my “spawning code”

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TileManager : MonoBehaviour
{
    public GameObject[] tilePrefabs;
    public float zSpawn = 0;
    public float tileLenght = 30;
    void Start()
    {
        SpawnTile(0);
        SpawnTile(1);
        SpawnTile(4);
    }

    // Update is called once per frame
    void Update()
    {
     
    }
    public void SpawnTile(int tileIndex)
    {
        Instantiate(tilePrefabs[tileIndex], transform.forward * zSpawn, transform.rotation);
        zSpawn += tileLenght;
    }
}

Somehow it set the location of it at 0 0 0. I want it at another point in my program.

{Video Of the bug}

How can I change the location?

EDIT: I use this tutorial but he doesn’t show it how:

transform.forward * zSpawn Since zSpawn is zero, this will give you… the zero vector. Use a different position vector and it will spawn at a different position.

so Instead of 0 at the top I should use? public float zSpawn = 8230.055;

Thank you. One question how can i rotate it 90 degrees? because its now on its side(as seen in the video)

6399473--713837--upload_2020-10-9_6-24-49.png
Eh it doesn’t work. You know what I did wrong?
Edit: Iam aware of the errors at the console. they arent related to this bug though