My teleporter is not working,
I need help with my teleporter. It just lets me go through the block and doesn't teleport me to the designated target. using System.Collections; using System.Collections.Generic; using UnityEngine;
public class Teleporter1 : MonoBehaviour { public GameObject Player; public Transform Teleportto; private void onTriggerEnter(Collider other){
Player.transform.position = Teleportto.transform.position;
}
}
If you could help me that would be super. thanks in advance,the following code is not working and every time I try to touch the box I go directly through it and it does not teleport me. using System.Collections; using System.Collections.Generic; using UnityEngine;
public class Teleporter1 : MonoBehaviour { public GameObject Player; public Transform Teleportto; private void onTriggerEnter(Collider other){
Player.transform.position = Teleportto.transform.position;
}
}
If you can help me please let me know. Thanks
Your answer
Follow this Question
Related Questions
Teleporting player on key press 1 Answer
Teleport script help! 1 Answer
2D Power up script not working 0 Answers
Teleportation with gun 2 Answers
Object Teleports but returns back to original location super fast 1 Answer