I have made a custom scrolling frame, and it works, but there is only one problem: when I scroll in the frame, my camera zooms in and out. Before you say to set Max and Min Zoom distance, yes, I already did that. But, I don't want it to be like that. I just want to disable zoom while the mouse is inside of a Gui.
I could easily do this if I had a way of determining the character's current zoom distance.
Get the distance from the camera to the CameraSubject (in this case being the humanoid)
(Camera.CFrame.p-Camera.CameraSubject.RootPart.Position).magnitude