--// Stances
function Prone()
	UpdateAmmo()
	L_111_:FireServer("Prone")	
	
	L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
		CameraOffset = Vector3.new(0, -3, 0)
	}):Play()
	L_3_:WaitForChild("Humanoid").WalkSpeed = 4
	
	L_154_ = 4
	L_153_ = 0.025
	
	L_64_ = true
	
	Proned2 = Vector3.new(0, 0.5, 0.5)
	L_129_(L_9_,  CFrame.new(0, -2.4201169, -0.0385534465, -0.99999994, -5.86197757e-012, -4.54747351e-013, 5.52669195e-012, 0.998915195, 0.0465667509, 0, 0.0465667509, -0.998915195), nil, function(L_283_arg1)
		return math.sin(math.rad(L_283_arg1))
	end, 0.25)
	L_129_(L_10_,  CFrame.new(1.00000191, -1, -5.96046448e-008, 1.31237243e-011, -0.344507754, 0.938783348, 0, 0.938783467, 0.344507784, -1, 0, -1.86264515e-009) , nil, function(L_284_arg1)
		return math.sin(math.rad(L_284_arg1))
	end, 0.25)
	L_129_(L_11_,  CFrame.new(-0.999996185, -1, -1.1920929e-007, -2.58566502e-011, 0.314521015, -0.949250221, 0, 0.94925046, 0.314521164, 1, 3.7252903e-009, 1.86264515e-009) , nil, function(L_285_arg1)
		return math.sin(math.rad(L_285_arg1))
	end, 0.25)
end

function Stand()
	UpdateAmmo()
	L_111_:FireServer("Stand")
	
	L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
		CameraOffset = Vector3.new(0, 0, 0)
	}):Play()
	
	L_64_ = false		
	
	if not L_63_ then
		L_3_:WaitForChild("Humanoid").WalkSpeed = 16
		L_153_ = .2
		L_154_ = 17
	elseif L_63_ then
		L_3_:WaitForChild("Humanoid").WalkSpeed = 16
		L_154_ = 10
		L_153_ = 0.02
	end
	
	Proned2 = Vector3.new(0, 0, 0)
	L_129_(L_9_, CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), nil, function(L_286_arg1)
		return math.sin(math.rad(L_286_arg1))
	end, 0.25)
	L_129_(L_10_,  CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), nil, function(L_287_arg1)
		return math.sin(math.rad(L_287_arg1))
	end, 0.25)
	L_129_(L_11_,  CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), nil, function(L_288_arg1)
		return math.sin(math.rad(L_288_arg1))
	end, 0.25)
end

function Crouch()
	UpdateAmmo()
	L_111_:FireServer("Crouch")
	
	L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
		CameraOffset = Vector3.new(0, -1, 0)
	}):Play()
	L_3_:WaitForChild("Humanoid").WalkSpeed = 9
	
	L_154_ = 9
	L_153_ = 0.035
	
	L_64_ = true
	
	Proned2 = Vector3.new(0, 0, 0)
	L_129_(L_9_, CFrame.new(0, -1.04933882, 0, -1, 0, -1.88871293e-012, 1.88871293e-012, -3.55271368e-015, 1, 0, 1, -3.55271368e-015), nil, function(L_289_arg1)
		return math.sin(math.rad(L_289_arg1))
	end, 0.25)
	L_129_(L_10_,  CFrame.new(1, 0.0456044674, -0.494239986, 6.82121026e-013, -1.22639676e-011, 1, -0.058873821, 0.998265445, -1.09836602e-011, -0.998265445, -0.058873821, 0), nil, function(L_290_arg1)
		return math.sin(math.rad(L_290_arg1))
	end, 0.25)
	L_129_(L_11_,  CFrame.new(-1.00000381, -0.157019258, -0.471293032, -8.7538865e-012, -8.7538865e-012, -1, 0.721672177, 0.692235112, 1.64406284e-011, 0.692235112, -0.721672177, 0), nil, function(L_291_arg1)
		return math.sin(math.rad(L_291_arg1))
	end, 0.25)
	L_129_(L_6_:WaitForChild("Neck"), nil, CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), function(L_292_arg1)
		return math.sin(math.rad(L_292_arg1))
	end, 0.25)
end

function LeanRight()
	if L_92_ ~= 2 then
		L_111_:FireServer("LeanRight")
		L_129_(L_9_, nil, CFrame.new(0, 0.200000003, 0, -0.939692616, 0, -0.342020124, -0.342020124, 0, 0.939692616, 0, 1, 0), function(L_293_arg1)
			return math.sin(math.rad(L_293_arg1))
		end, 0.25)
		L_129_(L_10_, nil, CFrame.new(0.300000012, 0.600000024, 0, 0, 0.342020124, 0.939692616, 0, 0.939692616, -0.342020124, -1, 0, 0), function(L_294_arg1)
			return math.sin(math.rad(L_294_arg1))
		end, 0.25)
		L_129_(L_11_,  nil, nil, function(L_295_arg1)
			return math.sin(math.rad(L_295_arg1))
		end, 0.25)	
		L_129_(L_6_:WaitForChild("Clone"), nil, CFrame.new(-0.400000006, -0.300000012, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), function(L_296_arg1)
			return math.sin(math.rad(L_296_arg1))
		end, 0.25)
		if not L_64_ then
			L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
				CameraOffset = Vector3.new(1, -0.5, 0)
			}):Play()	
		elseif L_64_ then
			if L_92_ == 1 then
				L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
					CameraOffset = Vector3.new(1, -1.5, 0)
				}):Play()	
			end
		end;
	end	
end

function LeanLeft()
	if L_92_ ~= 2 then
		L_111_:FireServer("LeanLeft")
		L_129_(L_9_, nil, CFrame.new(0, 0.200000003, 0, -0.939692616, 0, 0.342020124, 0.342020124, 0, 0.939692616, 0, 1, 0), function(L_297_arg1)
			return math.sin(math.rad(L_297_arg1))
		end, 0.25)
		L_129_(L_10_, nil, nil, function(L_298_arg1)
			return math.sin(math.rad(L_298_arg1))
		end, 0.25)
		L_129_(L_11_,  nil, CFrame.new(-0.300000012, 0.600000024, 0, 0, -0.342020124, -0.939692616, 0, 0.939692616, -0.342020124, 1, 0, 0), function(L_299_arg1)
			return math.sin(math.rad(L_299_arg1))
		end, 0.25)
		L_129_(L_6_:WaitForChild("Clone"), nil, CFrame.new(0.400000006, -0.300000012, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), function(L_300_arg1)
			return math.sin(math.rad(L_300_arg1))
		end, 0.25)
		if not L_64_ then
			L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
				CameraOffset = Vector3.new(-1, -0.5, 0)
			}):Play()	
		elseif L_64_ then
			if L_92_ == 1 then
				L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
					CameraOffset = Vector3.new(-1, -1.5, 0)
				}):Play()	
			end
		end;
	end	
end

function Unlean()
	if L_92_ ~= 2 then
		L_111_:FireServer("Unlean")
		L_129_(L_9_, nil, CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), function(L_301_arg1)
			return math.sin(math.rad(L_301_arg1))
		end, 0.25)
		L_129_(L_10_, nil, CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), function(L_302_arg1)
			return math.sin(math.rad(L_302_arg1))
		end, 0.25)
		L_129_(L_11_,  nil, CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), function(L_303_arg1)
			return math.sin(math.rad(L_303_arg1))
		end, 0.25)	
		if L_6_:FindFirstChild('Clone') then
			L_129_(L_6_:WaitForChild("Clone"), nil, CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), function(L_304_arg1)
				return math.sin(math.rad(L_304_arg1))
			end, 0.25)
		end		
		if not L_64_ then
			L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
				CameraOffset = Vector3.new(0, 0, 0)
			}):Play()	
		elseif L_64_ then			
			if L_92_ == 1 then
				L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
					CameraOffset = Vector3.new(0, -1, 0)
				}):Play()	
			end
		end;
	end
end
	
local L_164_ = false

L_106_.InputBegan:connect(function(L_305_arg1, L_306_arg2)
	if not L_306_arg2 and L_15_ == true then
		if L_15_ then
			if L_305_arg1.KeyCode == Enum.KeyCode.C or L_305_arg1.KeyCode == Enum.KeyCode.ButtonB then 
				if L_92_ == 0 and not L_66_ and L_15_ then			
					L_92_ = 1
					Crouch()
				
					L_93_ = false
					L_95_ = true
					L_94_ = false
				elseif L_92_ == 1 and not L_66_ and L_15_ then
					L_92_ = 2
					Prone()
				
					L_95_ = false
					L_93_ = true
					L_94_ = false
					L_164_ = true
				end
			end
							
					
			if L_305_arg1.KeyCode == Enum.KeyCode.X or L_305_arg1.KeyCode == Enum.KeyCode.ButtonY then 
				if L_92_ == 2 and not L_66_ and L_15_ then
					L_164_ = false		
					L_92_ = 1
					Crouch()
					
					L_93_ = false
					L_95_ = true
					L_94_ = false
				elseif L_92_ == 1 and not L_66_ and L_15_ then		
					L_92_ = 0
					Stand()
				
					L_93_ = false
					L_95_ = false
					L_94_ = true
				end
			end
		end
	end
end)