Respawn Script

I am trying to make a simple game, when my player die or fall from something the player will respawn at his last position. right now i am using this script but my player respawn at from the start

using UnityEngine;
using System.Collections;

public class Cave_reset : MonoBehaviour {

void OnTriggerEnter(Collider other)


Try to remember players position before he die. And then you can call:

transform.position = Vector3(0, 0, 0);

where Vector3 is your last remembered position :slight_smile:

Docs: Unity - Scripting API: Transform.position