I have a block inside of a house that I want the player's camera to get zoomed in on completely and not allow the player to zoom out. I have noticed that the camera refuses to zoom in through the house in order to get to the brick that is inside.
Here is my code which is in a localscript
local player = game.Players.LocalPlayer
local camera = game.Workspace.Camera
script.Parent.MouseButton1Click:connect(function()
camera.CameraSubject = game.Workspace.cameraFocus
camera.CameraType = "Attach"
camera.FieldOfView = 90
camera.CFrame = CFrame.new(30,0,0)
player.CameraMaxZoomDistance = 10
end)

3 comments
game.Workspace.CurrentCamera vs. game.Workspace.Camera
Thanks but that does not solve my issue. My issue is that the Camera is staying zoomed too far away from the brick, is there any way to set the camera to zoom in on the brick completely?
You could try using the Scriptable CameraType, or you could try gradually reducing the CameraMaxZoomDistance property of the player.