MouseLook issue

I’m trying to disable MouseLook on a First Person Controller when the player clicks on an item. So that the item is centered on the screen and then enlarged.
So I attached a script to the First Person Controller and wrote this:

this.GetComponent.().enabled = false;

This however only affects the X axis. The player can still look up and down for some reason.
Can somebody point me in the right direction?
Thanks

You must disable both the MouseLook attached to the FPS root and the one attached to its child “Main Camera”

That’s because there is another script (Mouse Look) attach to the gameObject or somewhere in the child of that gameObject or maybe attach to the camera. So try to find it then you can later disable it.