Need help figuring out how to limit Camera movement when attached to a Players head

Hey there so I have made an script that plays a animation and during the animation the Camera is attached to the head using Enum.CameraType.Attach now the only problem I have is I can still move the camera up and down during the animation so how would I make it so I cannot move the camera up and down?

cam.CameraType = Enum.CameraType.Attach
	cam.CameraSubject = head
	Player.CameraMode = Enum.CameraMode.LockFirstPerson

This is all I have put for the camera to attach to the players head.


Here’s a video hopefully it can help figuring out what I can do