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)