I like the default camera behavior for my game, with one exception. I don't want the player to be able to zoom out. Can I prevent this by simply limiting the height of the camera relative to the humanoid somehow? Thank you.
I attempted doing this with the Camera in my game, and I could definitely tell you what not to do.
a) Programmatically zooming in the camera when it is above the limit doesn't work the way you might want it to because it is a very messy method of doing things and can often end up with the camera stuck zooming all the time.
b) The properties Player.CameraMaxZoomDistance and Player.CameraMinZoomDistance doesn't work, so that's out of the question.
c) Setting the zoom to a certain distance from the player when it goes past the Max turns out to be really choppy, and annoying when trying to play a game.
The best and probably easiest (maybe even laziest) method of accomplishing this that I have found out is to create a ZoomInScreen GUI when the player passes the Max limit. In other words, a GUI that pops up telling the player to zoom back in.
This is how many games probably do it (I can think of Apoc Rising off the top of my head) and probably the most efficient solution I have found yet.
Ok these people are idiots. There is a service which I believe is called Starterplayer. Click on it while in studio. There should be options for maxCameraDistance etc. These control the camera.