local function h(h,k)local V=h.UserInputType if V==Enum.UserInputType.Gamepad1 then local k=h.KeyCode if k==Enum.KeyCode.Thumbstick2 then local k=h.Position panDeltaGamepad=Vector2.new(InputCurve(k.y),InputCurve(-k.x))*7 elseif k==Enum.KeyCode.Thumbstick1 then local k=h.Position gp_x=InputCurve(k.x)gp_z=InputCurve(-k.y)elseif k==Enum.KeyCode.ButtonL2 then gp_l1=h.Position.z elseif k==Enum.KeyCode.ButtonR2 then gp_r1=h.Position.z end elseif V==Enum.UserInputType.MouseWheel then rate_fov=h.Position.Z end end UIS.InputChanged:Connect(h)UIS.InputEnded:Connect(h)UIS.InputBegan:Connect(h)
------------------------------------------------

local function ProcessInput(input, processed)
	local userInputType = input.UserInputType
	if userInputType == Enum.UserInputType.Gamepad1 then
		local keycode = input.KeyCode
		if keycode == Enum.KeyCode.Thumbstick2 then
			local pos = input.Position
			panDeltaGamepad = Vector2.new(InputCurve(pos.y), InputCurve(-pos.x)) * 7
		elseif keycode == Enum.KeyCode.Thumbstick1 then
			local pos = input.Position
			gp_x = InputCurve(pos.x)
			gp_z = InputCurve(-pos.y)
		elseif keycode == Enum.KeyCode.ButtonL2 then
			gp_l1 = input.Position.z
		elseif keycode == Enum.KeyCode.ButtonR2 then
			gp_r1 = input.Position.z
		end
	elseif userInputType == Enum.UserInputType.MouseWheel then
		rate_fov = input.Position.Z
	end
end

UIS.InputChanged:Connect(ProcessInput)
UIS.InputEnded:Connect(ProcessInput)
UIS.InputBegan:Connect(ProcessInput)
