Help with teleporting objects?

I am trying to write a script that makes a red disc teleport directly under a cube when the cube enters the trigger. I feel like I wrote the code correctly, but I’m doing something wrong because it isn’t working.

Here’s the code I have written:

using UnityEngine;
using System.Collections;

public class Teleporting : MonoBehaviour {

	public Transform destination;
	public Transform obj;

	void OnTriggerEnter(Collider other){
		if (gameObject.tag == "cube"){
			obj.transform.position = destination.position;

I set the destination variable to an empty game object that is a child of the cube (and below the cube so the disc teleports directly under the cube) that is entering the trigger.

Anyone have an idea of what I’m doing wrong?

Depending of your situation, avoid referencing transform.positon, instead, use transform.localPositon, position is the position in the world, the localPosition is the one wich you see in the editor. Also you don’t need that obj.transform.position, since obj is already an transform.