local m=math.rad(-80)local n=math.rad(80)local w=math.rad(15)local L=Vector2.new(math.rad(15),0)local t=Vector2.new(math.rad(45),0)local d=.1 local p=.4 local h=Vector2.new(0,0)local Z=Vector3.new(0,0,0)local v=Vector3.new(0,5,0)local f=Vector3.new(0,4,0)local D=Vector3.new(0,1.5,0)local s=Vector3.new(0,1.5,0)local O=Vector3.new(0,2,0)local Y=Vector3.new(2,2,1)local U=0 local E=10 local a=20 local W=.5 local T=.5 local c=require(script.Parent:WaitForChild("\067\097\109\101\114\097\085\116\105\108\115"))local r=require(script.Parent:WaitForChild("\090\111\111\109\067\111\110\116\114\111\108\108\101\114"))local u=require(script.Parent:WaitForChild("\067\097\109\101\114\097\084\111\103\103\108\101\083\116\097\116\101\067\111\110\116\114\111\108\108\101\114"))local l=require(script.Parent:WaitForChild("\067\097\109\101\114\097\073\110\112\117\116"))local N=require(script.Parent:WaitForChild("\067\097\109\101\114\097\085\073"))

local MIN_Y = math.rad(-80)
local MAX_Y = math.rad(80)

local VR_ANGLE = math.rad(15)
local VR_LOW_INTENSITY_ROTATION = Vector2.new(math.rad(15), 0)
local VR_HIGH_INTENSITY_ROTATION = Vector2.new(math.rad(45), 0)
local VR_LOW_INTENSITY_REPEAT = 0.1
local VR_HIGH_INTENSITY_REPEAT = 0.4

local ZERO_VECTOR2 = Vector2.new(0,0)
local ZERO_VECTOR3 = Vector3.new(0,0,0)

local SEAT_OFFSET = Vector3.new(0,5,0)
local VR_SEAT_OFFSET = Vector3.new(0,4,0)
local HEAD_OFFSET = Vector3.new(0,1.5,0)
local R15_HEAD_OFFSET = Vector3.new(0, 1.5, 0)
local R15_HEAD_OFFSET_NO_SCALING = Vector3.new(0, 2, 0)
local HUMANOID_ROOT_PART_SIZE = Vector3.new(2, 2, 1)

local GAMEPAD_ZOOM_STEP_1 = 0
local GAMEPAD_ZOOM_STEP_2 = 10
local GAMEPAD_ZOOM_STEP_3 = 20

local ZOOM_SENSITIVITY_CURVATURE = 0.5
local FIRST_PERSON_DISTANCE_MIN = 0.5

local Util = require(script.Parent:WaitForChild("CameraUtils"))
local ZoomController = require(script.Parent:WaitForChild("ZoomController"))
local CameraToggleStateController = require(script.Parent:WaitForChild("CameraToggleStateController"))
local CameraInput = require(script.Parent:WaitForChild("CameraInput"))
local CameraUI = require(script.Parent:WaitForChild("CameraUI"))
