local O L_98_:connect(function()if L_15_ then L_148_,L_149_=L_148_ or 0,L_149_ or 0 if L_151_==nil or L_150_==nil then L_151_=L_44_.C0 L_150_=L_44_.C1 end local O=math.sin((L_142_*L_144_)/2)*L_143_ local K=math.sin(L_142_*L_144_)*L_143_ local a=CFrame.new(O,K,.02)local R=math.sin((L_138_*L_141_)/2)*L_140_ local b=math.cos(L_138_*L_141_)*L_140_ local v=CFrame.new(R,b,.02)if L_135_ then L_142_=L_142_+.017 if L_24_.WalkAnimEnabled==true then L_136_=a else L_136_=CFrame.new()end else L_142_=0 L_136_=CFrame.new()end L_134_.t=Vector3.new(L_129_,L_130_,0)local l=L_134_.p local S=(l.X/L_131_)*(L_60_ and L_133_ or L_132_)local N=(l.Y/L_131_)*(L_60_ and L_133_ or L_132_)L_5_.CFrame=L_5_.CFrame:lerp(L_5_.CFrame*L_137_,.2)if L_60_ then L_125_=CFrame.Angles(math.rad(-S),math.rad(S),math.rad(N))*CFrame.fromAxisAngle(Vector3.new(5,0,-1),math.rad(S))L_138_=0 L_139_=CFrame.new()elseif not L_60_ then L_125_=CFrame.Angles(math.rad(-N),math.rad(-S),math.rad(-S))*CFrame.fromAxisAngle(L_43_.Position,math.rad(-N))L_138_=L_138_+.017 L_139_=v end if L_24_.SwayEnabled==true then L_44_.C0=L_44_.C0:lerp(((L_151_*L_125_)*L_136_)*L_139_,.1)else L_44_.C0=L_44_.C0:lerp(L_151_*L_136_,.1)end if L_63_ and(not L_66_ and(L_68_ and(not L_60_ and(not L_62_ and not Shooting))))then L_44_.C1=L_44_.C1:lerp(L_44_.C0*L_24_.SprintPos,.1)elseif not L_63_ and(not L_66_ and(not L_68_ and(not L_60_ and(not L_62_ and not Shooting))))then L_44_.C1=L_44_.C1:lerp(CFrame.new(),.1)end if L_60_ and not L_63_ then if not L_61_ then L_84_=L_24_.AimCamRecoil L_83_=L_24_.AimGunRecoil L_85_=L_24_.AimKickback elseif L_61_ then if L_87_==1 then L_84_=L_24_.AimCamRecoil/1.5 L_83_=L_24_.AimGunRecoil/1.5 L_85_=L_24_.AimKickback/1.5 end if L_87_==2 then L_84_=L_24_.AimCamRecoil/2 L_83_=L_24_.AimGunRecoil/2 L_85_=L_24_.AimKickback/2 end end if(L_3_.Head.Position-L_5_.CoordinateFrame.p).magnitude<2 then L_44_.C1=L_44_.C1:lerp(L_44_.C0*L_52_.CFrame:toObjectSpace(L_43_.CFrame),L_24_.AimSpeed);((L_41_:WaitForChild("\083\101\110\115\101")):WaitForChild("\083\101\110\115\105\116\105\118\105\116\121")).Visible=true;((L_41_:WaitForChild("\083\101\110\115\101")):WaitForChild("\083\101\110\115\105\116\105\118\105\116\121")).Text=L_50_ L_99_.MouseDeltaSensitivity=L_50_ end elseif not L_60_ and(not L_63_ and L_15_)then if(L_3_.Head.Position-L_5_.CoordinateFrame.p).magnitude<2 then L_44_.C1=L_44_.C1:lerp(CFrame.new(),L_24_.UnaimSpeed);((L_41_:WaitForChild("\083\101\110\115\101")):WaitForChild("\083\101\110\115\105\116\105\118\105\116\121")).Visible=false;((L_41_:WaitForChild("\083\101\110\115\101")):WaitForChild("\083\101\110\115\105\116\105\118\105\116\121")).Text=L_50_ L_99_.MouseDeltaSensitivity=L_51_ end if not L_61_ then L_84_=L_24_.camrecoil L_83_=L_24_.gunrecoil L_85_=L_24_.Kickback elseif L_61_ then if L_87_==1 then L_84_=L_24_.camrecoil/1.5 L_83_=L_24_.gunrecoil/1.5 L_85_=L_24_.Kickback/1.5 end if L_87_==2 then L_84_=L_24_.camrecoil/2 L_83_=L_24_.gunrecoil/2 L_85_=L_24_.Kickback/2 end end end if Recoiling then L_137_=CFrame.Angles(L_84_,0,0)L_44_.C0=L_44_.C0:lerp((L_44_.C0*CFrame.new(0,0,L_83_))*CFrame.Angles(-math.rad(L_85_),0,0),.3)elseif not Recoiling then L_137_=CFrame.Angles(0,0,0)L_44_.C0=L_44_.C0:lerp(CFrame.new(),.2)end if L_61_ 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_91_*L_24_.ZoomSpeed if(L_3_.Head.Position-L_5_.CoordinateFrame.p).magnitude>=2 then L_84_=L_24_.AimCamRecoil L_83_=L_24_.AimGunRecoil L_85_=L_24_.AimKickback;((L_41_:WaitForChild("\083\101\110\115\101")):WaitForChild("\083\101\110\115\105\116\105\118\105\116\121")).Visible=true;((L_41_:WaitForChild("\083\101\110\115\101")):WaitForChild("\083\101\110\115\105\116\105\118\105\116\121")).Text=L_50_ L_99_.MouseDeltaSensitivity=L_50_ elseif(L_3_.Head.Position-L_5_.CoordinateFrame.p).magnitude<2 and(not L_60_ and not L_61_)then L_84_=L_24_.camrecoil L_83_=L_24_.gunrecoil L_85_=L_24_.Kickback;((L_41_:WaitForChild("\083\101\110\115\101")):WaitForChild("\083\101\110\115\105\116\105\118\105\116\121")).Visible=false;((L_41_:WaitForChild("\083\101\110\115\101")):WaitForChild("\083\101\110\115\105\116\105\118\105\116\121")).Text=L_50_ L_99_.MouseDeltaSensitivity=L_51_ end end if L_15_ and L_24_.CameraGo then L_4_.TargetFilter=game.Workspace local O=((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_47_.C0=L_8_.CFrame:toObjectSpace(O)L_47_.C1=CFrame.Angles(-math.asin((L_4_.Hit.p-L_4_.Origin.p).unit.y),0,0)L_99_.MouseIconEnabled=false end if L_15_ and(L_3_.Head.Position-L_5_.CoordinateFrame.p).magnitude>=2 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 L_99_.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_153_

L_98_:connect(function()
	if L_15_ then
		L_148_, L_149_ = L_148_ or 0, L_149_ or 0
		if L_151_ == nil or L_150_ == nil then
			L_151_ = L_44_.C0
			L_150_ = L_44_.C1
		end
		
		local L_259_ = (math.sin(L_142_ * L_144_ / 2) * L_143_)
		local L_260_ = (math.sin(L_142_ * L_144_) * L_143_)
		local L_261_ = CFrame.new(L_259_, L_260_, 0.02)
				
		
		local L_262_ = (math.sin(L_138_ * L_141_ / 2) * L_140_)
		local L_263_ = (math.cos(L_138_ * L_141_) * L_140_)
		local L_264_ = CFrame.new(L_262_, L_263_, 0.02)
		
		if L_135_ then
			L_142_ = L_142_ + .017
			if L_24_.WalkAnimEnabled == true then
				L_136_ = L_261_
			else
				L_136_ = CFrame.new()
			end
		else
			L_142_ = 0
			L_136_ = CFrame.new()
		end
		
		L_134_.t = Vector3.new(L_129_, L_130_, 0)
		local L_265_ = L_134_.p
		local L_266_ = L_265_.X / L_131_ * (L_60_ and L_133_ or L_132_)
		local L_267_ = L_265_.Y / L_131_ * (L_60_ and L_133_ or L_132_)
		
		L_5_.CFrame = L_5_.CFrame:lerp(L_5_.CFrame * L_137_, 0.2)
		
		if L_60_ then
			L_125_ = CFrame.Angles(math.rad(-L_266_), math.rad(L_266_), math.rad(L_267_)) * CFrame.fromAxisAngle(Vector3.new(5, 0, -1), math.rad(L_266_))	
			L_138_ = 0
			L_139_ = CFrame.new()
		elseif not L_60_ then
			L_125_ = CFrame.Angles(math.rad(-L_267_), math.rad(-L_266_), math.rad(-L_266_)) * CFrame.fromAxisAngle(L_43_.Position, math.rad(-L_267_))
			L_138_ = L_138_ + 0.017			
			L_139_ = L_264_
		end
		
		if L_24_.SwayEnabled ==  true then
			L_44_.C0 = L_44_.C0:lerp(L_151_ * L_125_ * L_136_ * L_139_, 0.1)
		else
			L_44_.C0 = L_44_.C0:lerp(L_151_ * L_136_, 0.1)
		end		
		
		if L_63_ and not L_66_ and L_68_ and not L_60_ and not L_62_ and not Shooting then
			L_44_.C1 = L_44_.C1:lerp(L_44_.C0 * L_24_.SprintPos, 0.1)
		elseif not L_63_ and not L_66_ and not L_68_ and not L_60_ and not L_62_ and not Shooting then
			L_44_.C1 = L_44_.C1:lerp(CFrame.new(), 0.1)
		end
		
		if L_60_ and not L_63_ then
			if not L_61_ then
				L_84_ = L_24_.AimCamRecoil
				L_83_ = L_24_.AimGunRecoil
				L_85_ = L_24_.AimKickback
			elseif L_61_ then
				if L_87_ == 1 then
					L_84_ = L_24_.AimCamRecoil / 1.5
					L_83_ = L_24_.AimGunRecoil / 1.5
					L_85_ = L_24_.AimKickback / 1.5
				end
				
				if L_87_ == 2 then
					L_84_ = L_24_.AimCamRecoil / 2
					L_83_ = L_24_.AimGunRecoil / 2
					L_85_ = L_24_.AimKickback / 2
				end
			end
			
			if (L_3_.Head.Position - L_5_.CoordinateFrame.p).magnitude < 2 then
				L_44_.C1 = L_44_.C1:lerp(L_44_.C0 * L_52_.CFrame:toObjectSpace(L_43_.CFrame), L_24_.AimSpeed)
				
				L_41_:WaitForChild('Sense'):WaitForChild('Sensitivity').Visible = true
				L_41_:WaitForChild('Sense'):WaitForChild('Sensitivity').Text = L_50_
				L_99_.MouseDeltaSensitivity = L_50_
			end
		elseif not L_60_ and not L_63_ and L_15_ then
			if (L_3_.Head.Position - L_5_.CoordinateFrame.p).magnitude < 2 then
				L_44_.C1 = L_44_.C1:lerp(CFrame.new(), L_24_.UnaimSpeed)
				
				L_41_:WaitForChild('Sense'):WaitForChild('Sensitivity').Visible = false
				L_41_:WaitForChild('Sense'):WaitForChild('Sensitivity').Text = L_50_
				L_99_.MouseDeltaSensitivity = L_51_
			end	
			
			if not L_61_ then
				L_84_ = L_24_.camrecoil
				L_83_ = L_24_.gunrecoil
				L_85_ = L_24_.Kickback
			elseif L_61_ then
				if L_87_ == 1 then
					L_84_ = L_24_.camrecoil / 1.5
					L_83_ = L_24_.gunrecoil / 1.5
					L_85_ = L_24_.Kickback / 1.5
				end
				
				if L_87_ == 2 then
					L_84_ = L_24_.camrecoil / 2
					L_83_ = L_24_.gunrecoil / 2
					L_85_ = L_24_.Kickback / 2
				end
			end	
		end
		
		if Recoiling then
			L_137_ = CFrame.Angles(L_84_, 0, 0)	
			--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_44_.C0 = L_44_.C0:lerp(L_44_.C0 * CFrame.new(0, 0, L_83_) * CFrame.Angles(-math.rad(L_85_), 0, 0), 0.3)
		elseif not Recoiling then	
			L_137_ = CFrame.Angles(0, 0, 0)
			L_44_.C0 = L_44_.C0:lerp(CFrame.new(), 0.2)
		end
		
		if L_61_ then
			L_3_:WaitForChild('Humanoid').Jump = false
		end
		
		if L_15_ then 
			L_5_.FieldOfView = L_5_.FieldOfView * (1 - L_24_.ZoomSpeed) + (L_91_ * L_24_.ZoomSpeed)
			if (L_3_.Head.Position - L_5_.CoordinateFrame.p).magnitude >= 2 then
				L_84_ = L_24_.AimCamRecoil
				L_83_ = L_24_.AimGunRecoil
				L_85_ = L_24_.AimKickback
				
				L_41_:WaitForChild('Sense'):WaitForChild('Sensitivity').Visible = true
				L_41_:WaitForChild('Sense'):WaitForChild('Sensitivity').Text = L_50_
				L_99_.MouseDeltaSensitivity = L_50_
			elseif (L_3_.Head.Position - L_5_.CoordinateFrame.p).magnitude < 2 and not L_60_ and not L_61_ then
				L_84_ = L_24_.camrecoil
				L_83_ = L_24_.gunrecoil
				L_85_ = L_24_.Kickback
				
				L_41_:WaitForChild('Sense'):WaitForChild('Sensitivity').Visible = false
				L_41_:WaitForChild('Sense'):WaitForChild('Sensitivity').Text = L_50_
				L_99_.MouseDeltaSensitivity = L_51_
			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_268_ =  L_3_:WaitForChild("HumanoidRootPart").CFrame * CFrame.new(0, 1.5, 0) * CFrame.new(L_3_:WaitForChild("Humanoid").CameraOffset)
			L_47_.C0 = L_8_.CFrame:toObjectSpace(L_268_)
			L_47_.C1 = CFrame.Angles(-math.asin((L_4_.Hit.p - L_4_.Origin.p).unit.y), 0, 0)
			L_99_.MouseIconEnabled = false	
		end
		
		if L_15_ and (L_3_.Head.Position - L_5_.CoordinateFrame.p).magnitude >= 2 then
			L_4_.Icon = "http://www.roblox.com/asset?id=" .. L_24_.TPSMouseIcon
			L_99_.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)
