local v=game:GetService("\067\111\110\116\101\120\116\065\099\116\105\111\110\083\101\114\118\105\099\101")local C=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local H=game:GetService("\080\108\097\121\101\114\115")local N=game:GetService("\082\117\110\083\101\114\118\105\099\101")local L=(UserSettings()):GetService("\085\115\101\114\071\097\109\101\083\101\116\116\105\110\103\115")local M=game:GetService("\086\082\083\101\114\118\105\099\101")local k=game:GetService("\083\116\097\114\116\101\114\071\117\105")local E=H.LocalPlayer local Z=Enum.ContextActionPriority.Medium.Value local w=.3 local r=math.rad(120)local R=Vector2.new(1,.77)*math.rad(.5)local j=Vector2.new(1,.77)*math.rad(7)local b=Vector2.new(1,.66)*math.rad(1)local O=Vector2.new(1,.77)*math.rad(4)local f=1 local V=.1 local e=.04 local a=.25 local y do local v,C=pcall(function()return(UserSettings()):IsUserFeatureEnabled("\085\115\101\114\082\101\115\101\116\084\111\117\099\104\083\116\097\116\101\079\110\077\101\110\117\079\112\101\110")end)y=v and C end

local ContextActionService = game:GetService("ContextActionService")
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserGameSettings = UserSettings():GetService("UserGameSettings")
local VRService = game:GetService("VRService")
local StarterGui = game:GetService("StarterGui")

local player = Players.LocalPlayer

local CAMERA_INPUT_PRIORITY = Enum.ContextActionPriority.Medium.Value
local MB_TAP_LENGTH = 0.3 -- (s) length of time for a short mouse button tap to be registered

local ROTATION_SPEED_KEYS = math.rad(120) -- (rad/s)
local ROTATION_SPEED_MOUSE = Vector2.new(1, 0.77)*math.rad(0.5) -- (rad/s)
local ROTATION_SPEED_POINTERACTION = Vector2.new(1, 0.77)*math.rad(7) -- (rad/s)
local ROTATION_SPEED_TOUCH = Vector2.new(1, 0.66)*math.rad(1) -- (rad/s)
local ROTATION_SPEED_GAMEPAD = Vector2.new(1, 0.77)*math.rad(4) -- (rad/s)

local ZOOM_SPEED_MOUSE = 1 -- (scaled studs/wheel click)
local ZOOM_SPEED_KEYS = 0.1 -- (studs/s)
local ZOOM_SPEED_TOUCH = 0.04 -- (scaled studs/DIP %)

local MIN_TOUCH_SENSITIVITY_FRACTION = 0.25 -- 25% sensitivity at 90°

local FFlagUserResetTouchStateOnMenuOpen
do
	local success, result = pcall(function()
		return UserSettings():IsUserFeatureEnabled("UserResetTouchStateOnMenuOpen")
	end)
	FFlagUserResetTouchStateOnMenuOpen = success and result
end
