Hello, my question is about teleportation

I am trying to make a gameobject apear at a position when i use mouse button here is my code

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

public class BulletScript : MonoBehaviour {

    void Start ()
    {
        gameObject.active = false;
    }


    void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            gameObject.active = true;
            transform.position = new Vector3(-1.142088f, -0.08f, 0);
        }
    }

}

your code will not work because when you disable a gameobject even his scripts and components will not work until you reactivate it so try out this one
public GameObject ObjectToTeleport;

void Start ()
{
	ObjectToTeleport.SetActive (false);
}
void Update()
{
	if (Input.GetMouseButtonDown(0))
	{
		ObjectToTeleport.SetActive (true);
		ObjectToTeleport.transform.position = new Vector3(-1.142088f, -0.08f, 0);
	}
}

Good day Drachnyen.

You must know that when you deactivate a gameobject, you are desactivating all its components, incliding the scripts. So, when you do SetActive(false) you are disabling the script itself, so is imposible that reactive again.

You need and external object to control the player, so you can desactivate and activate again from a script that never goes inactive.

Bye!