LocalMouse.WheelForward:connect(function()if CameraZoomCount+1<=MaxCameraZoomCount then CameraZoomCount=CameraZoomCount+1 end end)LocalMouse.WheelBackward:connect(function()if CameraZoomCount-1>=-MaxCameraZoomCount then CameraZoomCount=CameraZoomCount-1 end end)RunService.RenderStepped:connect(function(u)if LocalPlayer.Character then local Y=LocalPlayer.Character:WaitForChild("\072\101\097\100")local M=CameraZoomCount*u LocalCamera.CFrame=LocalCamera.CFrame:lerp((((CFrame.new(Y.CFrame.X,Y.CFrame.Y,Y.CFrame.Z)*CFrame.new(0,10,-12.5))*CFrame.new(0,-M+.7^CameraZoomCount,M))*CFrame.Angles(0,math.rad(180),0))*CFrame.Angles(math.rad((-45+1.75^CameraZoomCount)+CameraZoomCount*2),0,0),.25)end end)


	LocalMouse.WheelForward:connect(function()
		if (CameraZoomCount + 1) <= MaxCameraZoomCount then
			CameraZoomCount = CameraZoomCount + 1
		end 
	end)

	LocalMouse.WheelBackward:connect(function()
		if (CameraZoomCount - 1) >= -MaxCameraZoomCount then
			CameraZoomCount = CameraZoomCount - 1
		end 
	end)

	RunService.RenderStepped:connect(function(delta)
		if LocalPlayer.Character then
			local Head = LocalPlayer.Character:WaitForChild('Head')
			local Diff = CameraZoomCount * delta

			LocalCamera.CFrame = LocalCamera.CFrame:lerp(
				CFrame.new(Head.CFrame.X, Head.CFrame.Y, Head.CFrame.Z)
					* CFrame.new(0, 10, -12.5)
						* CFrame.new(0, -Diff + (0.7 ^ CameraZoomCount), Diff)
					* CFrame.Angles(0, math.rad(180), 0)
					* CFrame.Angles(math.rad(-45 + (1.75 ^ CameraZoomCount) + (CameraZoomCount * 2)), 0, 0), 0.25)
		end 
	end)
