I cant seem to get this one. I know it has something to do with putting transform.position into a temp variable. All I want to do is use the value of the rotation y of obj2 and make obj1’s position y always the same value. Any advice will help, thanks
void Update ()
{
obj1.transform.position.y = obj2.transform.rotation.y;
}