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(s)if LocalPlayer.Character then local U=LocalPlayer.Character:WaitForChild("\072\101\097\100")local p=CameraZoomCount*s LocalCamera.CFrame=LocalCamera.CFrame:lerp((((CFrame.new(U.CFrame.X,U.CFrame.Y,U.CFrame.Z)*CFrame.new(0,10,-12.5))*CFrame.new(0,-p+.7^CameraZoomCount,p))*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)
