--// Stances
function Prone()
	UpdateAmmo()
	L_104_: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_144_ = 4
	L_143_ = 0.025
	
	L_61_ = true
	
	Proned2 = Vector3.new(0, 0.5, 0.5)
	L_119_(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_269_arg1)
		return math.sin(math.rad(L_269_arg1))
	end, 0.25)
	L_119_(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_270_arg1)
		return math.sin(math.rad(L_270_arg1))
	end, 0.25)
	L_119_(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_271_arg1)
		return math.sin(math.rad(L_271_arg1))
	end, 0.25)
end

function Stand()
	UpdateAmmo()
	L_104_:FireServer("Stand")
	
	L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
		CameraOffset = Vector3.new(0, 0, 0)
	}):Play()
	
	L_61_ = false		
	
	if not L_60_ then
		L_3_:WaitForChild("Humanoid").WalkSpeed = 16
		L_143_ = .2
		L_144_ = 17
	elseif L_60_ then
		L_3_:WaitForChild("Humanoid").WalkSpeed = 16
		L_144_ = 10
		L_143_ = 0.02
	end
	
	Proned2 = Vector3.new(0, 0, 0)
	L_119_(L_9_, CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), nil, function(L_272_arg1)
		return math.sin(math.rad(L_272_arg1))
	end, 0.25)
	L_119_(L_10_,  CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), nil, function(L_273_arg1)
		return math.sin(math.rad(L_273_arg1))
	end, 0.25)
	L_119_(L_11_,  CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), nil, function(L_274_arg1)
		return math.sin(math.rad(L_274_arg1))
	end, 0.25)
end

function Crouch()
	UpdateAmmo()
	L_104_: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_144_ = 9
	L_143_ = 0.035
	
	L_61_ = true
	
	Proned2 = Vector3.new(0, 0, 0)
	L_119_(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_275_arg1)
		return math.sin(math.rad(L_275_arg1))
	end, 0.25)
	L_119_(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_276_arg1)
		return math.sin(math.rad(L_276_arg1))
	end, 0.25)
	L_119_(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_277_arg1)
		return math.sin(math.rad(L_277_arg1))
	end, 0.25)
	L_119_(L_6_:WaitForChild("Neck"), nil, CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), function(L_278_arg1)
		return math.sin(math.rad(L_278_arg1))
	end, 0.25)
end

function LeanRight()
	if L_87_ ~= 2 then
		L_104_:FireServer("LeanRight")
		L_119_(L_9_, nil, CFrame.new(0, 0.200000003, 0, -0.939692616, 0, -0.342020124, -0.342020124, 0, 0.939692616, 0, 1, 0), function(L_279_arg1)
			return math.sin(math.rad(L_279_arg1))
		end, 0.25)
		L_119_(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_280_arg1)
			return math.sin(math.rad(L_280_arg1))
		end, 0.25)
		L_119_(L_11_,  nil, nil, function(L_281_arg1)
			return math.sin(math.rad(L_281_arg1))
		end, 0.25)	
		L_119_(L_6_:WaitForChild("Clone"), nil, CFrame.new(-0.400000006, -0.300000012, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), function(L_282_arg1)
			return math.sin(math.rad(L_282_arg1))
		end, 0.25)
		if not L_61_ then
			L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
				CameraOffset = Vector3.new(1, -0.5, 0)
			}):Play()	
		elseif L_61_ then
			if L_87_ == 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_87_ ~= 2 then
		L_104_:FireServer("LeanLeft")
		L_119_(L_9_, nil, CFrame.new(0, 0.200000003, 0, -0.939692616, 0, 0.342020124, 0.342020124, 0, 0.939692616, 0, 1, 0), function(L_283_arg1)
			return math.sin(math.rad(L_283_arg1))
		end, 0.25)
		L_119_(L_10_, nil, nil, function(L_284_arg1)
			return math.sin(math.rad(L_284_arg1))
		end, 0.25)
		L_119_(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_285_arg1)
			return math.sin(math.rad(L_285_arg1))
		end, 0.25)
		L_119_(L_6_:WaitForChild("Clone"), nil, CFrame.new(0.400000006, -0.300000012, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), function(L_286_arg1)
			return math.sin(math.rad(L_286_arg1))
		end, 0.25)
		if not L_61_ then
			L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
				CameraOffset = Vector3.new(-1, -0.5, 0)
			}):Play()	
		elseif L_61_ then
			if L_87_ == 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_87_ ~= 2 then
		L_104_:FireServer("Unlean")
		L_119_(L_9_, nil, CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), function(L_287_arg1)
			return math.sin(math.rad(L_287_arg1))
		end, 0.25)
		L_119_(L_10_, nil, CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), function(L_288_arg1)
			return math.sin(math.rad(L_288_arg1))
		end, 0.25)
		L_119_(L_11_,  nil, CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), function(L_289_arg1)
			return math.sin(math.rad(L_289_arg1))
		end, 0.25)	
		if L_6_:FindFirstChild('Clone') then
			L_119_(L_6_:WaitForChild("Clone"), nil, CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), function(L_290_arg1)
				return math.sin(math.rad(L_290_arg1))
			end, 0.25)
		end		
		if not L_61_ then
			L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
				CameraOffset = Vector3.new(0, 0, 0)
			}):Play()	
		elseif L_61_ then			
			if L_87_ == 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_154_ = false

L_99_.InputBegan:connect(function(L_291_arg1, L_292_arg2)
	if not L_292_arg2 and L_15_ == true then
		if L_15_ then
			if L_291_arg1.KeyCode == Enum.KeyCode.C then 
				if L_87_ == 0 and not L_63_ and L_15_ then			
					L_87_ = 1
					Crouch()
				
					L_88_ = false
					L_90_ = true
					L_89_ = false
				elseif L_87_ == 1 and not L_63_ and L_15_ then
					L_87_ = 2
					Prone()
				
					L_90_ = false
					L_88_ = true
					L_89_ = false
					L_154_ = true
				end
			end
							
					
			if L_291_arg1.KeyCode == Enum.KeyCode.X then 
				if L_87_ == 2 and not L_63_ and L_15_ then
					L_154_ = false		
					L_87_ = 1
					Crouch()
					
					L_88_ = false
					L_90_ = true
					L_89_ = false
				elseif L_87_ == 1 and not L_63_ and L_15_ then		
					L_87_ = 0
					Stand()
				
					L_88_ = false
					L_90_ = false
					L_89_ = true
				end
			end
		end
	end
end)