local g L_106_:connect(function()if L_15_ then L_159_,L_160_=L_159_ or 0,L_160_ or 0 if L_162_==nil or L_161_==nil then L_162_=L_45_.C0 L_161_=L_45_.C1 end local g=math.sin((L_153_*L_155_)/2)*L_154_ local L=math.sin(L_153_*L_155_)*L_154_ local m=CFrame.new(g,L,.02)local q=math.sin((L_153_*L_155_)/2)*L_154_ local j=math.sin(L_153_*L_155_)*L_154_ local k=CFrame.new(g,L,.02)*CFrame.Angles(math.cos(L_153_*L_155_)*L_154_,math.cos((L_153_*L_155_)/2)*L_154_,0)local r=math.sin((L_149_*L_152_)/2)*L_151_ local N=math.cos(L_149_*L_152_)*L_151_ local e=CFrame.new(r,N,.02)if L_146_ then L_153_=L_153_+.017 if L_24_.WalkAnimEnabled==true then if L_24_.TacticalModeEnabled then L_147_=k else L_147_=m end else L_147_=CFrame.new()end else L_153_=0 L_147_=CFrame.new()end L_145_.t=Vector3.new(L_140_,L_141_,0)local A=L_145_.p local t=(A.X/L_142_)*(L_64_ and L_144_ or L_143_)local f=(A.Y/L_142_)*(L_64_ and L_144_ or L_143_)L_5_.CFrame=L_5_.CFrame:lerp(L_5_.CFrame*L_148_,.2)if L_64_ then L_136_=CFrame.Angles(math.rad(-t),math.rad(t),math.rad(f))*CFrame.fromAxisAngle(Vector3.new(5,0,-1),math.rad(t))L_149_=0 L_150_=CFrame.new()elseif not L_64_ then L_136_=CFrame.Angles(math.rad(-f),math.rad(-t),math.rad(-t))*CFrame.fromAxisAngle(L_44_.Position,math.rad(-f))L_149_=L_149_+.017 L_150_=e end if L_24_.SwayEnabled==true then L_45_.C0=L_45_.C0:lerp(((L_162_*L_136_)*L_147_)*L_150_,.1)else L_45_.C0=L_45_.C0:lerp(L_162_*L_147_,.1)end if L_67_ and(not L_70_ and(L_72_ and(not L_64_ and(not L_66_ and not Shooting))))then L_45_.C1=L_45_.C1:lerp(L_45_.C0*L_24_.SprintPos,.1)elseif not L_67_ and(not L_70_ and(not L_72_ and(not L_64_ and(not L_66_ and(not Shooting and not L_79_)))))then L_45_.C1=L_45_.C1:lerp(CFrame.new()*L_134_,.05)end if L_64_ and not L_67_ then if not L_65_ then L_90_=L_24_.AimCamRecoil L_89_=L_24_.AimGunRecoil L_91_=L_24_.AimKickback elseif L_65_ then if L_93_==1 then L_90_=L_24_.AimCamRecoil/1.5 L_89_=L_24_.AimGunRecoil/1.5 L_91_=L_24_.AimKickback/1.5 end if L_93_==2 then L_90_=L_24_.AimCamRecoil/2 L_89_=L_24_.AimGunRecoil/2 L_91_=L_24_.AimKickback/2 end end if(L_3_.Head.Position-L_5_.CoordinateFrame.p).magnitude<2 then L_45_.C1=L_45_.C1:lerp(L_45_.C0*L_56_.CFrame:toObjectSpace(L_44_.CFrame),L_24_.AimSpeed);((L_42_:WaitForChild("\083\101\110\115\101")):WaitForChild("\083\101\110\115\105\116\105\118\105\116\121")).Visible=true;((L_42_:WaitForChild("\083\101\110\115\101")):WaitForChild("\083\101\110\115\105\116\105\118\105\116\121")).Text=L_51_ L_107_.MouseDeltaSensitivity=L_51_ end elseif not L_64_ and(not L_67_ and(L_15_ and not L_79_))then if(L_3_.Head.Position-L_5_.CoordinateFrame.p).magnitude<2 then L_45_.C1=L_45_.C1:lerp(CFrame.new()*L_134_,L_24_.UnaimSpeed);((L_42_:WaitForChild("\083\101\110\115\101")):WaitForChild("\083\101\110\115\105\116\105\118\105\116\121")).Visible=false;((L_42_:WaitForChild("\083\101\110\115\101")):WaitForChild("\083\101\110\115\105\116\105\118\105\116\121")).Text=L_51_ L_107_.MouseDeltaSensitivity=L_52_ end if not L_65_ then L_90_=L_24_.camrecoil L_89_=L_24_.gunrecoil L_91_=L_24_.Kickback elseif L_65_ then if L_93_==1 then L_90_=L_24_.camrecoil/1.5 L_89_=L_24_.gunrecoil/1.5 L_91_=L_24_.Kickback/1.5 end if L_93_==2 then L_90_=L_24_.camrecoil/2 L_89_=L_24_.gunrecoil/2 L_91_=L_24_.Kickback/2 end end end if Recoiling then if not L_64_ then L_148_=CFrame.fromEulerAnglesXYZ(math.rad(L_90_*math.random(0,L_24_.CamShake)),math.rad(L_90_*math.random(-L_24_.CamShake,L_24_.CamShake)),math.rad(L_90_*math.random(-L_24_.CamShake,L_24_.CamShake)))else L_148_=CFrame.fromEulerAnglesXYZ(math.rad(L_90_*math.random(0,L_24_.AimCamShake)),math.rad(L_90_*math.random(-L_24_.AimCamShake,L_24_.AimCamShake)),math.rad(L_90_*math.random(-L_24_.AimCamShake,L_24_.AimCamShake)))end L_45_.C0=L_45_.C0:lerp((L_45_.C0*CFrame.new(0,0,L_89_))*CFrame.Angles(-math.rad(L_91_),0,0),.3)elseif not Recoiling then L_148_=CFrame.Angles(0,0,0)L_45_.C0=L_45_.C0:lerp(CFrame.new(),.2)end if L_65_ then(L_3_:WaitForChild("\072\117\109\097\110\111\105\100")).Jump=false end if L_15_ then L_5_.FieldOfView=L_5_.FieldOfView*(1-L_24_.ZoomSpeed)+L_97_*L_24_.ZoomSpeed if(L_3_.Head.Position-L_5_.CoordinateFrame.p).magnitude>=2 then L_90_=L_24_.AimCamRecoil L_89_=L_24_.AimGunRecoil L_91_=L_24_.AimKickback;((L_42_:WaitForChild("\083\101\110\115\101")):WaitForChild("\083\101\110\115\105\116\105\118\105\116\121")).Visible=true;((L_42_:WaitForChild("\083\101\110\115\101")):WaitForChild("\083\101\110\115\105\116\105\118\105\116\121")).Text=L_51_ L_107_.MouseDeltaSensitivity=L_51_ elseif(L_3_.Head.Position-L_5_.CoordinateFrame.p).magnitude<2 and(not L_64_ and not L_65_)then L_90_=L_24_.camrecoil L_89_=L_24_.gunrecoil L_91_=L_24_.Kickback;((L_42_:WaitForChild("\083\101\110\115\101")):WaitForChild("\083\101\110\115\105\116\105\118\105\116\121")).Visible=false;((L_42_:WaitForChild("\083\101\110\115\101")):WaitForChild("\083\101\110\115\105\116\105\118\105\116\121")).Text=L_51_ L_107_.MouseDeltaSensitivity=L_52_ end end if L_15_ and L_24_.CameraGo then L_4_.TargetFilter=game.Workspace local g=((L_3_:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")).CFrame*CFrame.new(0,1.5,0))*CFrame.new((L_3_:WaitForChild("\072\117\109\097\110\111\105\100")).CameraOffset)L_48_.C0=L_8_.CFrame:toObjectSpace(g)L_48_.C1=CFrame.Angles(-math.asin((L_4_.Hit.p-L_4_.Origin.p).unit.y),0,0)L_107_.MouseIconEnabled=false end if L_15_ and(L_3_.Head.Position-L_5_.CoordinateFrame.p).magnitude>=2 then if L_4_.Icon~="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\063\105\100\061"..L_24_.TPSMouseIcon then L_4_.Icon="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\063\105\100\061"..L_24_.TPSMouseIcon end L_107_.MouseIconEnabled=true if L_3_:FindFirstChild("\082\105\103\104\116 \065\114\109")and L_3_:FindFirstChild("\076\101\102\116 \065\114\109")then L_3_["\082\105\103\104\116 \065\114\109"].LocalTransparencyModifier=1 L_3_["\076\101\102\116 \065\114\109"].LocalTransparencyModifier=1 end end end end)

local L_164_

L_106_:connect(function()
	if L_15_ then
		L_159_, L_160_ = L_159_ or 0, L_160_ or 0
		if L_162_ == nil or L_161_ == nil then
			L_162_ = L_45_.C0
			L_161_ = L_45_.C1
		end
		
		local L_274_ = (math.sin(L_153_ * L_155_ / 2) * L_154_)
		local L_275_ = (math.sin(L_153_ * L_155_) * L_154_)
		local L_276_ = CFrame.new(L_274_, L_275_, 0.02)
		
		local L_277_ = (math.sin(L_153_ * L_155_ / 2) * L_154_)
		local L_278_ = (math.sin(L_153_ * L_155_) * L_154_)
		local L_279_ = CFrame.new(L_274_, L_275_, 0.02) * CFrame.Angles((math.cos(L_153_ * L_155_) * L_154_), (math.cos(L_153_ * L_155_ / 2) * L_154_), 0)
		
		local L_280_ = (math.sin(L_149_ * L_152_ / 2) * L_151_)
		local L_281_ = (math.cos(L_149_ * L_152_) * L_151_)
		local L_282_ = CFrame.new(L_280_, L_281_, 0.02)
		
		if L_146_ then
			L_153_ = L_153_ + .017
			if L_24_.WalkAnimEnabled == true then
				if L_24_.TacticalModeEnabled then
					L_147_ = L_279_
				else
					L_147_ = L_276_
				end
			else
				L_147_ = CFrame.new()
			end
		else
			L_153_ = 0
			L_147_ = CFrame.new()
		end
		
		L_145_.t = Vector3.new(L_140_, L_141_, 0)
		local L_283_ = L_145_.p
		local L_284_ = L_283_.X / L_142_ * (L_64_ and L_144_ or L_143_)
		local L_285_ = L_283_.Y / L_142_ * (L_64_ and L_144_ or L_143_)
		
		L_5_.CFrame = L_5_.CFrame:lerp(L_5_.CFrame * L_148_, 0.2)
		
		if L_64_ then
			L_136_ = CFrame.Angles(math.rad(-L_284_), math.rad(L_284_), math.rad(L_285_)) * CFrame.fromAxisAngle(Vector3.new(5, 0, -1), math.rad(L_284_))	
			L_149_ = 0
			L_150_ = CFrame.new()
		elseif not L_64_ then
			L_136_ = CFrame.Angles(math.rad(-L_285_), math.rad(-L_284_), math.rad(-L_284_)) * CFrame.fromAxisAngle(L_44_.Position, math.rad(-L_285_))
			L_149_ = L_149_ + 0.017			
			L_150_ = L_282_
		end
		
		if L_24_.SwayEnabled ==  true then
			L_45_.C0 = L_45_.C0:lerp(L_162_ * L_136_ * L_147_ * L_150_, 0.1)
		else
			L_45_.C0 = L_45_.C0:lerp(L_162_ * L_147_, 0.1)
		end		
		
		if L_67_ and not L_70_ and L_72_ and not L_64_ and not L_66_ and not Shooting then
			L_45_.C1 = L_45_.C1:lerp(L_45_.C0 * L_24_.SprintPos, 0.1)
		elseif not L_67_ and not L_70_ and not L_72_ and not L_64_ and not L_66_ and not Shooting and not L_79_ then
			L_45_.C1 = L_45_.C1:lerp(CFrame.new() * L_134_, 0.05)
		end
		
		
		if L_64_ and not L_67_ then
			if not L_65_ then
				L_90_ = L_24_.AimCamRecoil
				L_89_ = L_24_.AimGunRecoil
				L_91_ = L_24_.AimKickback
			elseif L_65_ then
				if L_93_ == 1 then
					L_90_ = L_24_.AimCamRecoil / 1.5
					L_89_ = L_24_.AimGunRecoil / 1.5
					L_91_ = L_24_.AimKickback / 1.5
				end
				
				if L_93_ == 2 then
					L_90_ = L_24_.AimCamRecoil / 2
					L_89_ = L_24_.AimGunRecoil / 2
					L_91_ = L_24_.AimKickback / 2
				end
			end
			
			if (L_3_.Head.Position - L_5_.CoordinateFrame.p).magnitude < 2 then
				L_45_.C1 = L_45_.C1:lerp(L_45_.C0 * L_56_.CFrame:toObjectSpace(L_44_.CFrame), L_24_.AimSpeed)
				
				L_42_:WaitForChild('Sense'):WaitForChild('Sensitivity').Visible = true
				L_42_:WaitForChild('Sense'):WaitForChild('Sensitivity').Text = L_51_
				L_107_.MouseDeltaSensitivity = L_51_
			end
		elseif not L_64_ and not L_67_ and L_15_ and not L_79_ then
			if (L_3_.Head.Position - L_5_.CoordinateFrame.p).magnitude < 2 then
				L_45_.C1 = L_45_.C1:lerp(CFrame.new() * L_134_, L_24_.UnaimSpeed)
				
				L_42_:WaitForChild('Sense'):WaitForChild('Sensitivity').Visible = false
				L_42_:WaitForChild('Sense'):WaitForChild('Sensitivity').Text = L_51_
				L_107_.MouseDeltaSensitivity = L_52_
			end	
			
			if not L_65_ then
				L_90_ = L_24_.camrecoil
				L_89_ = L_24_.gunrecoil
				L_91_ = L_24_.Kickback
			elseif L_65_ then
				if L_93_ == 1 then
					L_90_ = L_24_.camrecoil / 1.5
					L_89_ = L_24_.gunrecoil / 1.5
					L_91_ = L_24_.Kickback / 1.5
				end
				
				if L_93_ == 2 then
					L_90_ = L_24_.camrecoil / 2
					L_89_ = L_24_.gunrecoil / 2
					L_91_ = L_24_.Kickback / 2
				end
			end	
		end
		
		if Recoiling then
			if not L_64_ then
				L_148_ = CFrame.fromEulerAnglesXYZ(math.rad(L_90_ * math.random(0, L_24_.CamShake)), math.rad(L_90_ * math.random(-L_24_.CamShake, L_24_.CamShake)), math.rad(L_90_ * math.random(-L_24_.CamShake, L_24_.CamShake)))--CFrame.Angles(camrecoil,0,0)	
			else
				L_148_ = CFrame.fromEulerAnglesXYZ(math.rad(L_90_ * math.random(0, L_24_.AimCamShake)), math.rad(L_90_ * math.random(-L_24_.AimCamShake, L_24_.AimCamShake)), math.rad(L_90_ * math.random(-L_24_.AimCamShake, L_24_.AimCamShake)))
			end
			--cam.CoordinateFrame = cam.CoordinateFrame *  CFrame.fromEulerAnglesXYZ(math.rad(camrecoil*math.random(0,3)), math.rad(camrecoil*math.random(-1,1)), math.rad(camrecoil*math.random(-1,1)))
			L_45_.C0 = L_45_.C0:lerp(L_45_.C0 * CFrame.new(0, 0, L_89_) * CFrame.Angles(-math.rad(L_91_), 0, 0), 0.3)
		elseif not Recoiling then	
			L_148_ = CFrame.Angles(0, 0, 0)
			L_45_.C0 = L_45_.C0:lerp(CFrame.new(), 0.2)
		end
		
		if L_65_ then
			L_3_:WaitForChild('Humanoid').Jump = false
		end
		
		if L_15_ then 
			L_5_.FieldOfView = L_5_.FieldOfView * (1 - L_24_.ZoomSpeed) + (L_97_ * L_24_.ZoomSpeed)
			if (L_3_.Head.Position - L_5_.CoordinateFrame.p).magnitude >= 2 then
				L_90_ = L_24_.AimCamRecoil
				L_89_ = L_24_.AimGunRecoil
				L_91_ = L_24_.AimKickback
				
				L_42_:WaitForChild('Sense'):WaitForChild('Sensitivity').Visible = true
				L_42_:WaitForChild('Sense'):WaitForChild('Sensitivity').Text = L_51_
				L_107_.MouseDeltaSensitivity = L_51_
			elseif (L_3_.Head.Position - L_5_.CoordinateFrame.p).magnitude < 2 and not L_64_ and not L_65_ then
				L_90_ = L_24_.camrecoil
				L_89_ = L_24_.gunrecoil
				L_91_ = L_24_.Kickback
				
				L_42_:WaitForChild('Sense'):WaitForChild('Sensitivity').Visible = false
				L_42_:WaitForChild('Sense'):WaitForChild('Sensitivity').Text = L_51_
				L_107_.MouseDeltaSensitivity = L_52_
			end
		end
		
		if L_15_ and L_24_.CameraGo then --and (char.Head.Position - cam.CoordinateFrame.p).magnitude < 2 then
			L_4_.TargetFilter = game.Workspace
			local L_286_ =  L_3_:WaitForChild("HumanoidRootPart").CFrame * CFrame.new(0, 1.5, 0) * CFrame.new(L_3_:WaitForChild("Humanoid").CameraOffset)
			L_48_.C0 = L_8_.CFrame:toObjectSpace(L_286_)
			L_48_.C1 = CFrame.Angles(-math.asin((L_4_.Hit.p - L_4_.Origin.p).unit.y), 0, 0)
			L_107_.MouseIconEnabled = false	
		end
		
		if L_15_ and (L_3_.Head.Position - L_5_.CoordinateFrame.p).magnitude >= 2 then
			if L_4_.Icon ~= "http://www.roblox.com/asset?id=" .. L_24_.TPSMouseIcon then
				L_4_.Icon = "http://www.roblox.com/asset?id=" .. L_24_.TPSMouseIcon
			end
			L_107_.MouseIconEnabled = true
			
			if L_3_:FindFirstChild('Right Arm') and L_3_:FindFirstChild('Left Arm') then
				L_3_['Right Arm'].LocalTransparencyModifier = 1
				L_3_['Left Arm'].LocalTransparencyModifier = 1
			end
		end;
	end
end)
