function Prone()UpdateAmmo()L_104_:FireServer("\080\114\111\110\101");(L_14_:Create(L_3_:WaitForChild("\072\117\109\097\110\111\105\100"),TweenInfo.new(.3),{CameraOffset=Vector3.new(0,-3,0)})):Play();(L_3_:WaitForChild("\072\117\109\097\110\111\105\100")).WalkSpeed=4 L_144_=4 L_143_=.025 L_61_=true Proned2=Vector3.new(0,.5,.5)L_119_(L_9_,CFrame.new(0,-2.4201169,-0.0385534465,-0.99999994,-5.86197757e-12,-4.54747351e-13,5.52669195e-12,.998915195,.0465667509,0,.0465667509,-0.998915195),nil,function(t)return math.sin(math.rad(t))end,.25)L_119_(L_10_,CFrame.new(1.00000191,-1,-5.96046448e-08,1.31237243e-11,-0.344507754,.938783348,0,.938783467,.344507784,-1,0,-1.86264515e-09),nil,function(t)return math.sin(math.rad(t))end,.25)L_119_(L_11_,CFrame.new(-0.999996185,-1,-1.1920929e-07,-2.58566502e-11,.314521015,-0.949250221,0,.94925046,.314521164,1,3.7252903e-09,1.86264515e-09),nil,function(t)return math.sin(math.rad(t))end,.25)end function Stand()UpdateAmmo()L_104_:FireServer("\083\116\097\110\100");(L_14_:Create(L_3_:WaitForChild("\072\117\109\097\110\111\105\100"),TweenInfo.new(.3),{CameraOffset=Vector3.new(0,0,0)})):Play()L_61_=false if not L_60_ then(L_3_:WaitForChild("\072\117\109\097\110\111\105\100")).WalkSpeed=16 L_143_=.2 L_144_=17 elseif L_60_ then(L_3_:WaitForChild("\072\117\109\097\110\111\105\100")).WalkSpeed=16 L_144_=10 L_143_=.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(t)return math.sin(math.rad(t))end,.25)L_119_(L_10_,CFrame.new(1,-1,0,0,0,1,0,1,0,-1,0,0),nil,function(t)return math.sin(math.rad(t))end,.25)L_119_(L_11_,CFrame.new(-1,-1,0,0,0,-1,0,1,0,1,0,0),nil,function(t)return math.sin(math.rad(t))end,.25)end function Crouch()UpdateAmmo()L_104_:FireServer("\067\114\111\117\099\104");(L_14_:Create(L_3_:WaitForChild("\072\117\109\097\110\111\105\100"),TweenInfo.new(.3),{CameraOffset=Vector3.new(0,-1,0)})):Play();(L_3_:WaitForChild("\072\117\109\097\110\111\105\100")).WalkSpeed=9 L_144_=9 L_143_=.035 L_61_=true Proned2=Vector3.new(0,0,0)L_119_(L_9_,CFrame.new(0,-1.04933882,0,-1,0,-1.88871293e-12,1.88871293e-12,-3.55271368e-15,1,0,1,-3.55271368e-15),nil,function(t)return math.sin(math.rad(t))end,.25)L_119_(L_10_,CFrame.new(1,.0456044674,-0.494239986,6.82121026e-13,-1.22639676e-11,1,-0.058873821,.998265445,-1.09836602e-11,-0.998265445,-0.058873821,0),nil,function(t)return math.sin(math.rad(t))end,.25)L_119_(L_11_,CFrame.new(-1.00000381,-0.157019258,-0.471293032,-8.7538865e-12,-8.7538865e-12,-1,.721672177,.692235112,1.64406284e-11,.692235112,-0.721672177,0),nil,function(t)return math.sin(math.rad(t))end,.25)L_119_(L_6_:WaitForChild("\078\101\099\107"),nil,CFrame.new(0,-0.5,0,-1,0,0,0,0,1,0,1,0),function(t)return math.sin(math.rad(t))end,.25)end function LeanRight()if L_87_~=2 then L_104_:FireServer("\076\101\097\110\082\105\103\104\116")L_119_(L_9_,nil,CFrame.new(0,.200000003,0,-0.939692616,0,-0.342020124,-0.342020124,0,.939692616,0,1,0),function(t)return math.sin(math.rad(t))end,.25)L_119_(L_10_,nil,CFrame.new(.300000012,.600000024,0,0,.342020124,.939692616,0,.939692616,-0.342020124,-1,0,0),function(t)return math.sin(math.rad(t))end,.25)L_119_(L_11_,nil,nil,function(t)return math.sin(math.rad(t))end,.25)L_119_(L_6_:WaitForChild("\067\108\111\110\101"),nil,CFrame.new(-0.400000006,-0.300000012,0,-1,0,0,0,0,1,0,1,0),function(t)return math.sin(math.rad(t))end,.25)if not L_61_ then(L_14_:Create(L_3_:WaitForChild("\072\117\109\097\110\111\105\100"),TweenInfo.new(.3),{CameraOffset=Vector3.new(1,-0.5,0)})):Play()elseif L_61_ then if L_87_==1 then(L_14_:Create(L_3_:WaitForChild("\072\117\109\097\110\111\105\100"),TweenInfo.new(.3),{CameraOffset=Vector3.new(1,-1.5,0)})):Play()end end end end function LeanLeft()if L_87_~=2 then L_104_:FireServer("\076\101\097\110\076\101\102\116")L_119_(L_9_,nil,CFrame.new(0,.200000003,0,-0.939692616,0,.342020124,.342020124,0,.939692616,0,1,0),function(t)return math.sin(math.rad(t))end,.25)L_119_(L_10_,nil,nil,function(t)return math.sin(math.rad(t))end,.25)L_119_(L_11_,nil,CFrame.new(-0.300000012,.600000024,0,0,-0.342020124,-0.939692616,0,.939692616,-0.342020124,1,0,0),function(t)return math.sin(math.rad(t))end,.25)L_119_(L_6_:WaitForChild("\067\108\111\110\101"),nil,CFrame.new(.400000006,-0.300000012,0,-1,0,0,0,0,1,0,1,0),function(t)return math.sin(math.rad(t))end,.25)if not L_61_ then(L_14_:Create(L_3_:WaitForChild("\072\117\109\097\110\111\105\100"),TweenInfo.new(.3),{CameraOffset=Vector3.new(-1,-0.5,0)})):Play()elseif L_61_ then if L_87_==1 then(L_14_:Create(L_3_:WaitForChild("\072\117\109\097\110\111\105\100"),TweenInfo.new(.3),{CameraOffset=Vector3.new(-1,-1.5,0)})):Play()end end end end function Unlean()if L_87_~=2 then L_104_:FireServer("\085\110\108\101\097\110")L_119_(L_9_,nil,CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,0),function(t)return math.sin(math.rad(t))end,.25)L_119_(L_10_,nil,CFrame.new(.5,1,0,0,0,1,0,1,0,-1,0,0),function(t)return math.sin(math.rad(t))end,.25)L_119_(L_11_,nil,CFrame.new(-0.5,1,0,0,0,-1,0,1,0,1,0,0),function(t)return math.sin(math.rad(t))end,.25)if L_6_:FindFirstChild("\067\108\111\110\101")then L_119_(L_6_:WaitForChild("\067\108\111\110\101"),nil,CFrame.new(0,-0.5,0,-1,0,0,0,0,1,0,1,0),function(t)return math.sin(math.rad(t))end,.25)end if not L_61_ then(L_14_:Create(L_3_:WaitForChild("\072\117\109\097\110\111\105\100"),TweenInfo.new(.3),{CameraOffset=Vector3.new(0,0,0)})):Play()elseif L_61_ then if L_87_==1 then(L_14_:Create(L_3_:WaitForChild("\072\117\109\097\110\111\105\100"),TweenInfo.new(.3),{CameraOffset=Vector3.new(0,-1,0)})):Play()end end end end local t=false L_99_.InputBegan:connect(function(H,u)if not u and L_15_==true then if L_15_ then if H.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 t=true end end if H.KeyCode==Enum.KeyCode.X then if L_87_==2 and(not L_63_ and L_15_)then t=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)

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)
