local i=false local E=70 local J=math.tan((E*math.pi)/360)local e=Vector3.new(1,.75,1)local m=Vector2.new(.85,1)/128 local O=-330 local K=.125 local s=CFrame.new(0,0,-16)local d=1 local N=2 local f=3 local v=4 local o=5 local w=6 local Z={[d]={Enum.KeyCode.A,Enum.KeyCode.H};[N]={Enum.KeyCode.D;Enum.KeyCode.K},[f]={Enum.KeyCode.W,Enum.KeyCode.U};[v]={Enum.KeyCode.S;Enum.KeyCode.J},[o]={Enum.KeyCode.E;Enum.KeyCode.Y};[w]={Enum.KeyCode.Q;Enum.KeyCode.I}}function CreateLetterBox()local i=Instance.new("\070\114\097\109\101")i.Name="\084\111\112\066\097\114"i.Position=UDim2.new(0,0,0,-36)i.Size=UDim2.new(1,0,.128,0)i.ZIndex=10 i.BackgroundColor3=Color3.new(0,0,0)i.BorderSizePixel=0 i.Visible=false i.Parent=script.Parent local E=i:Clone()E.Name="\066\111\116\116\111\109\066\097\114"E.Position=UDim2.new(0,0,1,0)E.AnchorPoint=Vector2.new(0,1)E.Parent=script.Parent return script.Parent end


local LETTERBOX = false
local DEF_FOV = 70
local NM_ZOOM = math.tan(DEF_FOV * math.pi/360)
local LVEL_GAIN = Vector3.new(1, 0.75, 1)
local RVEL_GAIN = Vector2.new(0.85, 1)/128
local FVEL_GAIN = -330
local DEADZONE = 0.125
local FOCUS_OFFSET = CFrame.new(0, 0, -16)

local DIRECTION_LEFT = 1
local DIRECTION_RIGHT = 2
local DIRECTION_FORWARD = 3
local DIRECTION_BACKWARD = 4
local DIRECTION_UP = 5
local DIRECTION_DOWN = 6

local KEY_MAPPINGS = {
	[DIRECTION_LEFT] = {Enum.KeyCode.A, Enum.KeyCode.H},
	[DIRECTION_RIGHT] = {Enum.KeyCode.D, Enum.KeyCode.K},
	[DIRECTION_FORWARD] = {Enum.KeyCode.W, Enum.KeyCode.U},
	[DIRECTION_BACKWARD] = {Enum.KeyCode.S, Enum.KeyCode.J},
	[DIRECTION_UP] = {Enum.KeyCode.E, Enum.KeyCode.Y},
	[DIRECTION_DOWN] = {Enum.KeyCode.Q, Enum.KeyCode.I},
}

function CreateLetterBox()
	local topBar = Instance.new("Frame")
	topBar.Name = "TopBar"
	topBar.Position = UDim2.new(0, 0, 0, -36)
	topBar.Size = UDim2.new(1, 0, 0.128, 0)
	topBar.ZIndex = 10
	topBar.BackgroundColor3 = Color3.new(0, 0, 0)
	topBar.BorderSizePixel = 0
	topBar.Visible = false
	topBar.Parent = script.Parent

	local bottomBar = topBar:Clone()
	bottomBar.Name = "BottomBar"
	bottomBar.Position = UDim2.new(0, 0, 1, 0)
	bottomBar.AnchorPoint = Vector2.new(0, 1)
	bottomBar.Parent = script.Parent
	return script.Parent
end
