--// Stances
function Prone()
	UpdateAmmo()
	L_109_: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_152_ = 4
	L_151_ = 0.025
	
	L_62_ = true
	
	Proned2 = Vector3.new(0, 0.5, 0.5)
	L_127_(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_281_arg1)
		return math.sin(math.rad(L_281_arg1))
	end, 0.25)
	L_127_(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_282_arg1)
		return math.sin(math.rad(L_282_arg1))
	end, 0.25)
	L_127_(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_283_arg1)
		return math.sin(math.rad(L_283_arg1))
	end, 0.25)
end

function Stand()
	UpdateAmmo()
	L_109_:FireServer("Stand")
	
	L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
		CameraOffset = Vector3.new(0, 0, 0)
	}):Play()
	
	L_62_ = false		
	
	if not L_61_ then
		L_3_:WaitForChild("Humanoid").WalkSpeed = 16
		L_151_ = .2
		L_152_ = 17
	elseif L_61_ then
		L_3_:WaitForChild("Humanoid").WalkSpeed = 16
		L_152_ = 10
		L_151_ = 0.02
	end
	
	Proned2 = Vector3.new(0, 0, 0)
	L_127_(L_9_, CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), nil, function(L_284_arg1)
		return math.sin(math.rad(L_284_arg1))
	end, 0.25)
	L_127_(L_10_,  CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), nil, function(L_285_arg1)
		return math.sin(math.rad(L_285_arg1))
	end, 0.25)
	L_127_(L_11_,  CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), nil, function(L_286_arg1)
		return math.sin(math.rad(L_286_arg1))
	end, 0.25)
end

function Crouch()
	UpdateAmmo()
	L_109_: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_152_ = 9
	L_151_ = 0.035
	
	L_62_ = true
	
	Proned2 = Vector3.new(0, 0, 0)
	L_127_(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_287_arg1)
		return math.sin(math.rad(L_287_arg1))
	end, 0.25)
	L_127_(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_288_arg1)
		return math.sin(math.rad(L_288_arg1))
	end, 0.25)
	L_127_(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_289_arg1)
		return math.sin(math.rad(L_289_arg1))
	end, 0.25)
	L_127_(L_6_:WaitForChild("Neck"), 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

function LeanRight()
	if L_90_ ~= 2 then
		L_109_:FireServer("LeanRight")
		L_127_(L_9_, nil, CFrame.new(0, 0.200000003, 0, -0.939692616, 0, -0.342020124, -0.342020124, 0, 0.939692616, 0, 1, 0), function(L_291_arg1)
			return math.sin(math.rad(L_291_arg1))
		end, 0.25)
		L_127_(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_292_arg1)
			return math.sin(math.rad(L_292_arg1))
		end, 0.25)
		L_127_(L_11_,  nil, nil, function(L_293_arg1)
			return math.sin(math.rad(L_293_arg1))
		end, 0.25)	
		L_127_(L_6_:WaitForChild("Clone"), nil, CFrame.new(-0.400000006, -0.300000012, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), function(L_294_arg1)
			return math.sin(math.rad(L_294_arg1))
		end, 0.25)
		if not L_62_ then
			L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
				CameraOffset = Vector3.new(1, -0.5, 0)
			}):Play()	
		elseif L_62_ then
			if L_90_ == 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_90_ ~= 2 then
		L_109_:FireServer("LeanLeft")
		L_127_(L_9_, nil, CFrame.new(0, 0.200000003, 0, -0.939692616, 0, 0.342020124, 0.342020124, 0, 0.939692616, 0, 1, 0), function(L_295_arg1)
			return math.sin(math.rad(L_295_arg1))
		end, 0.25)
		L_127_(L_10_, nil, nil, function(L_296_arg1)
			return math.sin(math.rad(L_296_arg1))
		end, 0.25)
		L_127_(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_297_arg1)
			return math.sin(math.rad(L_297_arg1))
		end, 0.25)
		L_127_(L_6_:WaitForChild("Clone"), nil, CFrame.new(0.400000006, -0.300000012, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), function(L_298_arg1)
			return math.sin(math.rad(L_298_arg1))
		end, 0.25)
		if not L_62_ then
			L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
				CameraOffset = Vector3.new(-1, -0.5, 0)
			}):Play()	
		elseif L_62_ then
			if L_90_ == 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_90_ ~= 2 then
		L_109_:FireServer("Unlean")
		L_127_(L_9_, nil, CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), function(L_299_arg1)
			return math.sin(math.rad(L_299_arg1))
		end, 0.25)
		L_127_(L_10_, nil, CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), function(L_300_arg1)
			return math.sin(math.rad(L_300_arg1))
		end, 0.25)
		L_127_(L_11_,  nil, CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), function(L_301_arg1)
			return math.sin(math.rad(L_301_arg1))
		end, 0.25)	
		if L_6_:FindFirstChild('Clone') then
			L_127_(L_6_:WaitForChild("Clone"), nil, CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), function(L_302_arg1)
				return math.sin(math.rad(L_302_arg1))
			end, 0.25)
		end		
		if not L_62_ then
			L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
				CameraOffset = Vector3.new(0, 0, 0)
			}):Play()	
		elseif L_62_ then			
			if L_90_ == 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_162_ = false

L_104_.InputBegan:connect(function(L_303_arg1, L_304_arg2)
	if not L_304_arg2 and L_15_ == true then
		if L_15_ then
			if L_303_arg1.KeyCode == Enum.KeyCode.C or L_303_arg1.KeyCode == Enum.KeyCode.ButtonB then 
				if L_90_ == 0 and not L_64_ and L_15_ then			
					L_90_ = 1
					Crouch()
				
					L_91_ = false
					L_93_ = true
					L_92_ = false
				elseif L_90_ == 1 and not L_64_ and L_15_ then
					L_90_ = 2
					Prone()
				
					L_93_ = false
					L_91_ = true
					L_92_ = false
					L_162_ = true
				end
			end
							
					
			if L_303_arg1.KeyCode == Enum.KeyCode.X or L_303_arg1.KeyCode == Enum.KeyCode.ButtonY then 
				if L_90_ == 2 and not L_64_ and L_15_ then
					L_162_ = false		
					L_90_ = 1
					Crouch()
					
					L_91_ = false
					L_93_ = true
					L_92_ = false
				elseif L_90_ == 1 and not L_64_ and L_15_ then		
					L_90_ = 0
					Stand()
				
					L_91_ = false
					L_93_ = false
					L_92_ = true
				end
			end
		end
	end
end)