Text that always looks at you

I’ve tried to make GUI text face the camera but all the other scripts i found on unity answers did not work and made the text move. I want the text to face the camera and have locked movement and only change in x y z always facing the camera.

(Continued from Comments) I just tried it with the following:

using UnityEngine;

public class TestFace : MonoBehaviour {
	
	// Update is called once per frame
	void Update () {
        transform.LookAt(Camera.main.transform);
    }
}

And it worked fine.