The video below shows how zoomed out I am on the viewport frame. I want the viewport frame to be as if you’re looking through the yellow square.
Here’s the code:
picButton.MouseButton1Click:Connect(function()
ViewItem:ClearAllChildren()
local camera = game.Workspace.CurrentCamera:clone()
gallery.CurrentCamera = camera
camera.Parent = ViewItem
generatePixels() -- 10,000 raycasts check every pixel in my 100x100 yellow square
gallery.CurrentCamera.CameraType = Enum.CameraType.Scriptable
table.clear(pixelArray)
end)
My only solution I’ve found is to set the FieldOfView to 13.5, but that feels very arbitrary. Anything else I can try? Thanks!