How to make a script that will let a gameobject copy the location and z,y rotation but not the x-rotation of another gameobject?
It worked with this script (parent without z-rotation):
var newThing : Transform;
var oldThing : Transform;
function Start () {
}
function Update () {
newThing.transform.position = oldThing.transform.position;
newThing.transform.eulerAngles.x = oldThing.transform.eulerAngles.x;
newThing.transform.eulerAngles.y = oldThing.transform.eulerAngles.y;
newThing.transform.eulerAngles.z = 0;
}