I am making a camera script but right now I want to find a way to check how far the mouse wheel has scrolled so I can make the camera zoom out by that amount. I'm using player:GetMouse()
btw
mouse.WheelForward:Connect(function(x) end)
x = nil
is there another method to get the mouse or am I just stuck with the zoom distance I have right now?
I'd recommend using UserInputService's InputChanged event to detect if the UserInputType is Enum.UserInputType.MouseWheel. From there, you can easily determine the direction from the input, which is the most important information. You can derive this from the input's Position.Z.
This is what the current CameraModule uses (Currently located under BaseCamera, breadcrumb trail starting at line 471).
Hope this helps.