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


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.I},
	[DIRECTION_DOWN] = {Enum.KeyCode.Q, Enum.KeyCode.Y},
}

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.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
