--// Stances
function Prone()
	UpdateAmmo()
	L_112_: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
	
	if not L_24_.TacticalModeEnabled then
		L_155_ = 4
		L_154_ = 0.025
	else
		L_154_ = 0.01
		L_155_ = 4
	end
	
	L_65_ = true
	
	Proned2 = Vector3.new(0, 0.5, 0.5)
	L_130_(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_287_arg1)
		return math.sin(math.rad(L_287_arg1))
	end, 0.25)
	L_130_(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_288_arg1)
		return math.sin(math.rad(L_288_arg1))
	end, 0.25)
	L_130_(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_289_arg1)
		return math.sin(math.rad(L_289_arg1))
	end, 0.25)
end

function Stand()
	UpdateAmmo()
	L_112_:FireServer("Stand")
	
	L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
		CameraOffset = Vector3.new(0, 0, 0)
	}):Play()
	
	L_65_ = false		
	
	if not L_64_ then
		L_3_:WaitForChild("Humanoid").WalkSpeed = 16
		if L_24_.TacticalModeEnabled then
			L_154_ = 0.09
			L_155_ = 11
		else
			L_154_ = .2
			L_155_ = 17
		end
	elseif L_64_ then
		if L_24_.TacticalModeEnabled then
			L_154_ = 0.015
			L_155_ = 7
			L_3_:WaitForChild("Humanoid").WalkSpeed = 7
		else
			L_3_:WaitForChild("Humanoid").WalkSpeed = 16
			L_155_ = 10
			L_154_ = 0.02
		end
	end
	
	Proned2 = Vector3.new(0, 0, 0)
	L_130_(L_9_, CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), nil, function(L_290_arg1)
		return math.sin(math.rad(L_290_arg1))
	end, 0.25)
	L_130_(L_10_,  CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), nil, function(L_291_arg1)
		return math.sin(math.rad(L_291_arg1))
	end, 0.25)
	L_130_(L_11_,  CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), nil, function(L_292_arg1)
		return math.sin(math.rad(L_292_arg1))
	end, 0.25)
end

function Crouch()
	UpdateAmmo()
	L_112_: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
	
	if not L_24_.TacticalModeEnabled then
		L_155_ = 9
		L_154_ = 0.035
	else
		L_154_ = 0.015
		L_155_ = 9
	end
	
	L_65_ = true
	
	Proned2 = Vector3.new(0, 0, 0)
	L_130_(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_293_arg1)
		return math.sin(math.rad(L_293_arg1))
	end, 0.25)
	L_130_(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_294_arg1)
		return math.sin(math.rad(L_294_arg1))
	end, 0.25)
	L_130_(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_295_arg1)
		return math.sin(math.rad(L_295_arg1))
	end, 0.25)
	L_130_(L_6_:WaitForChild("Neck"), nil, CFrame.new(0, -0.5, 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)
end

function LeanRight()
	if L_93_ ~= 2 then
		L_112_:FireServer("LeanRight")
		L_130_(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_130_(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_298_arg1)
			return math.sin(math.rad(L_298_arg1))
		end, 0.25)
		L_130_(L_11_,  nil, nil, function(L_299_arg1)
			return math.sin(math.rad(L_299_arg1))
		end, 0.25)	
		L_130_(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_65_ then
			L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
				CameraOffset = Vector3.new(1, -0.5, 0)
			}):Play()	
		elseif L_65_ then
			if L_93_ == 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_93_ ~= 2 then
		L_112_:FireServer("LeanLeft")
		L_130_(L_9_, nil, CFrame.new(0, 0.200000003, 0, -0.939692616, 0, 0.342020124, 0.342020124, 0, 0.939692616, 0, 1, 0), function(L_301_arg1)
			return math.sin(math.rad(L_301_arg1))
		end, 0.25)
		L_130_(L_10_, nil, nil, function(L_302_arg1)
			return math.sin(math.rad(L_302_arg1))
		end, 0.25)
		L_130_(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_303_arg1)
			return math.sin(math.rad(L_303_arg1))
		end, 0.25)
		L_130_(L_6_:WaitForChild("Clone"), nil, CFrame.new(0.400000006, -0.300000012, 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)
		if not L_65_ then
			L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
				CameraOffset = Vector3.new(-1, -0.5, 0)
			}):Play()	
		elseif L_65_ then
			if L_93_ == 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_93_ ~= 2 then
		L_112_:FireServer("Unlean")
		L_130_(L_9_, nil, CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), function(L_305_arg1)
			return math.sin(math.rad(L_305_arg1))
		end, 0.25)
		L_130_(L_10_, nil, CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), function(L_306_arg1)
			return math.sin(math.rad(L_306_arg1))
		end, 0.25)
		L_130_(L_11_,  nil, CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), function(L_307_arg1)
			return math.sin(math.rad(L_307_arg1))
		end, 0.25)	
		if L_6_:FindFirstChild('Clone') then
			L_130_(L_6_:WaitForChild("Clone"), nil, CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), function(L_308_arg1)
				return math.sin(math.rad(L_308_arg1))
			end, 0.25)
		end		
		if not L_65_ then
			L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
				CameraOffset = Vector3.new(0, 0, 0)
			}):Play()	
		elseif L_65_ then			
			if L_93_ == 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_165_ = false

L_107_.InputBegan:connect(function(L_309_arg1, L_310_arg2)
	if not L_310_arg2 and L_15_ == true then
		if L_15_ then
			if L_309_arg1.KeyCode == Enum.KeyCode.C or L_309_arg1.KeyCode == Enum.KeyCode.ButtonB then 
				if L_93_ == 0 and not L_67_ and L_15_ then			
					L_93_ = 1
					Crouch()
				
					L_94_ = false
					L_96_ = true
					L_95_ = false
				elseif L_93_ == 1 and not L_67_ and L_15_ then
					L_93_ = 2
					Prone()
				
					L_96_ = false
					L_94_ = true
					L_95_ = false
					L_165_ = true
				end
			end
							
					
			if L_309_arg1.KeyCode == Enum.KeyCode.X or L_309_arg1.KeyCode == Enum.KeyCode.ButtonY then 
				if L_93_ == 2 and not L_67_ and L_15_ then
					L_165_ = false		
					L_93_ = 1
					Crouch()
					
					L_94_ = false
					L_96_ = true
					L_95_ = false
				elseif L_93_ == 1 and not L_67_ and L_15_ then		
					L_93_ = 0
					Stand()
				
					L_94_ = false
					L_96_ = false
					L_95_ = true
				end
			end
		end
	end
end)