local T L_105_:connect(function()if L_15_ then L_158_,L_159_=L_158_ or 0,L_159_ or 0 if L_161_==nil or L_160_==nil then L_161_=L_45_.C0 L_160_=L_45_.C1 end local T=math.sin((L_152_*L_154_)/2)*L_153_ local z=math.sin(L_152_*L_154_)*L_153_ local C=CFrame.new(T,z,.02)local M=math.sin((L_148_*L_151_)/2)*L_150_ local s=math.cos(L_148_*L_151_)*L_150_ local E=CFrame.new(M,s,.02)if L_145_ then L_152_=L_152_+.017 if L_24_.WalkAnimEnabled==true then L_146_=C else L_146_=CFrame.new()end else L_152_=0 L_146_=CFrame.new()end L_144_.t=Vector3.new(L_139_,L_140_,0)local H=L_144_.p local Q=(H.X/L_141_)*(L_63_ and L_143_ or L_142_)local b=(H.Y/L_141_)*(L_63_ and L_143_ or L_142_)L_5_.CFrame=L_5_.CFrame:lerp(L_5_.CFrame*L_147_,.2)if L_63_ then L_135_=CFrame.Angles(math.rad(-Q),math.rad(Q),math.rad(b))*CFrame.fromAxisAngle(Vector3.new(5,0,-1),math.rad(Q))L_148_=0 L_149_=CFrame.new()elseif not L_63_ then L_135_=CFrame.Angles(math.rad(-b),math.rad(-Q),math.rad(-Q))*CFrame.fromAxisAngle(L_44_.Position,math.rad(-b))L_148_=L_148_+.017 L_149_=E end if L_24_.SwayEnabled==true then L_45_.C0=L_45_.C0:lerp(((L_161_*L_135_)*L_146_)*L_149_,.1)else L_45_.C0=L_45_.C0:lerp(L_161_*L_146_,.1)end if L_66_ and(not L_69_ and(L_71_ and(not L_63_ and(not L_65_ and not Shooting))))then L_45_.C1=L_45_.C1:lerp(L_45_.C0*L_24_.SprintPos,.1)elseif not L_66_ and(not L_69_ and(not L_71_ and(not L_63_ and(not L_65_ and(not Shooting and not L_78_)))))then L_45_.C1=L_45_.C1:lerp(CFrame.new(),.1)end if L_63_ and not L_66_ then if not L_64_ then L_89_=L_24_.AimCamRecoil L_88_=L_24_.AimGunRecoil L_90_=L_24_.AimKickback elseif L_64_ then if L_92_==1 then L_89_=L_24_.AimCamRecoil/1.5 L_88_=L_24_.AimGunRecoil/1.5 L_90_=L_24_.AimKickback/1.5 end if L_92_==2 then L_89_=L_24_.AimCamRecoil/2 L_88_=L_24_.AimGunRecoil/2 L_90_=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_55_.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_106_.MouseDeltaSensitivity=L_51_ end elseif not L_63_ and(not L_66_ and(L_15_ and not L_78_))then if(L_3_.Head.Position-L_5_.CoordinateFrame.p).magnitude<2 then L_45_.C1=L_45_.C1:lerp(CFrame.new(),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_106_.MouseDeltaSensitivity=L_52_ end if not L_64_ then L_89_=L_24_.camrecoil L_88_=L_24_.gunrecoil L_90_=L_24_.Kickback elseif L_64_ then if L_92_==1 then L_89_=L_24_.camrecoil/1.5 L_88_=L_24_.gunrecoil/1.5 L_90_=L_24_.Kickback/1.5 end if L_92_==2 then L_89_=L_24_.camrecoil/2 L_88_=L_24_.gunrecoil/2 L_90_=L_24_.Kickback/2 end end end if Recoiling then L_147_=CFrame.Angles(L_89_,0,0)L_45_.C0=L_45_.C0:lerp((L_45_.C0*CFrame.new(0,0,L_88_))*CFrame.Angles(-math.rad(L_90_),0,0),.3)elseif not Recoiling then L_147_=CFrame.Angles(0,0,0)L_45_.C0=L_45_.C0:lerp(CFrame.new(),.2)end if L_64_ 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_96_*L_24_.ZoomSpeed if(L_3_.Head.Position-L_5_.CoordinateFrame.p).magnitude>=2 then L_89_=L_24_.AimCamRecoil L_88_=L_24_.AimGunRecoil L_90_=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_106_.MouseDeltaSensitivity=L_51_ elseif(L_3_.Head.Position-L_5_.CoordinateFrame.p).magnitude<2 and(not L_63_ and not L_64_)then L_89_=L_24_.camrecoil L_88_=L_24_.gunrecoil L_90_=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_106_.MouseDeltaSensitivity=L_52_ end end if L_15_ and L_24_.CameraGo then L_4_.TargetFilter=game.Workspace local T=((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(T)L_48_.C1=CFrame.Angles(-math.asin((L_4_.Hit.p-L_4_.Origin.p).unit.y),0,0)L_106_.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_106_.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_163_

L_105_:connect(function()
	if L_15_ then
		L_158_, L_159_ = L_158_ or 0, L_159_ or 0
		if L_161_ == nil or L_160_ == nil then
			L_161_ = L_45_.C0
			L_160_ = L_45_.C1
		end
		
		local L_273_ = (math.sin(L_152_ * L_154_ / 2) * L_153_)
		local L_274_ = (math.sin(L_152_ * L_154_) * L_153_)
		local L_275_ = CFrame.new(L_273_, L_274_, 0.02)
				
		
		local L_276_ = (math.sin(L_148_ * L_151_ / 2) * L_150_)
		local L_277_ = (math.cos(L_148_ * L_151_) * L_150_)
		local L_278_ = CFrame.new(L_276_, L_277_, 0.02)
		
		if L_145_ then
			L_152_ = L_152_ + .017
			if L_24_.WalkAnimEnabled == true then
				L_146_ = L_275_
			else
				L_146_ = CFrame.new()
			end
		else
			L_152_ = 0
			L_146_ = CFrame.new()
		end
		
		L_144_.t = Vector3.new(L_139_, L_140_, 0)
		local L_279_ = L_144_.p
		local L_280_ = L_279_.X / L_141_ * (L_63_ and L_143_ or L_142_)
		local L_281_ = L_279_.Y / L_141_ * (L_63_ and L_143_ or L_142_)
		
		L_5_.CFrame = L_5_.CFrame:lerp(L_5_.CFrame * L_147_, 0.2)
		
		if L_63_ then
			L_135_ = CFrame.Angles(math.rad(-L_280_), math.rad(L_280_), math.rad(L_281_)) * CFrame.fromAxisAngle(Vector3.new(5, 0, -1), math.rad(L_280_))	
			L_148_ = 0
			L_149_ = CFrame.new()
		elseif not L_63_ then
			L_135_ = CFrame.Angles(math.rad(-L_281_), math.rad(-L_280_), math.rad(-L_280_)) * CFrame.fromAxisAngle(L_44_.Position, math.rad(-L_281_))
			L_148_ = L_148_ + 0.017			
			L_149_ = L_278_
		end
		
		if L_24_.SwayEnabled ==  true then
			L_45_.C0 = L_45_.C0:lerp(L_161_ * L_135_ * L_146_ * L_149_, 0.1)
		else
			L_45_.C0 = L_45_.C0:lerp(L_161_ * L_146_, 0.1)
		end		
		
		if L_66_ and not L_69_ and L_71_ and not L_63_ and not L_65_ and not Shooting then
			L_45_.C1 = L_45_.C1:lerp(L_45_.C0 * L_24_.SprintPos, 0.1)
		elseif not L_66_ and not L_69_ and not L_71_ and not L_63_ and not L_65_ and not Shooting and not L_78_ then
			L_45_.C1 = L_45_.C1:lerp(CFrame.new(), 0.1)
		end
		
		if L_63_ and not L_66_ then
			if not L_64_ then
				L_89_ = L_24_.AimCamRecoil
				L_88_ = L_24_.AimGunRecoil
				L_90_ = L_24_.AimKickback
			elseif L_64_ then
				if L_92_ == 1 then
					L_89_ = L_24_.AimCamRecoil / 1.5
					L_88_ = L_24_.AimGunRecoil / 1.5
					L_90_ = L_24_.AimKickback / 1.5
				end
				
				if L_92_ == 2 then
					L_89_ = L_24_.AimCamRecoil / 2
					L_88_ = L_24_.AimGunRecoil / 2
					L_90_ = 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_55_.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_106_.MouseDeltaSensitivity = L_51_
			end
		elseif not L_63_ and not L_66_ and L_15_ and not L_78_ then
			if (L_3_.Head.Position - L_5_.CoordinateFrame.p).magnitude < 2 then
				L_45_.C1 = L_45_.C1:lerp(CFrame.new(), L_24_.UnaimSpeed)
				
				L_42_:WaitForChild('Sense'):WaitForChild('Sensitivity').Visible = false
				L_42_:WaitForChild('Sense'):WaitForChild('Sensitivity').Text = L_51_
				L_106_.MouseDeltaSensitivity = L_52_
			end	
			
			if not L_64_ then
				L_89_ = L_24_.camrecoil
				L_88_ = L_24_.gunrecoil
				L_90_ = L_24_.Kickback
			elseif L_64_ then
				if L_92_ == 1 then
					L_89_ = L_24_.camrecoil / 1.5
					L_88_ = L_24_.gunrecoil / 1.5
					L_90_ = L_24_.Kickback / 1.5
				end
				
				if L_92_ == 2 then
					L_89_ = L_24_.camrecoil / 2
					L_88_ = L_24_.gunrecoil / 2
					L_90_ = L_24_.Kickback / 2
				end
			end	
		end
		
		if Recoiling then
			L_147_ = CFrame.Angles(L_89_, 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_45_.C0 = L_45_.C0:lerp(L_45_.C0 * CFrame.new(0, 0, L_88_) * CFrame.Angles(-math.rad(L_90_), 0, 0), 0.3)
		elseif not Recoiling then	
			L_147_ = CFrame.Angles(0, 0, 0)
			L_45_.C0 = L_45_.C0:lerp(CFrame.new(), 0.2)
		end
		
		if L_64_ then
			L_3_:WaitForChild('Humanoid').Jump = false
		end
		
		if L_15_ then 
			L_5_.FieldOfView = L_5_.FieldOfView * (1 - L_24_.ZoomSpeed) + (L_96_ * L_24_.ZoomSpeed)
			if (L_3_.Head.Position - L_5_.CoordinateFrame.p).magnitude >= 2 then
				L_89_ = L_24_.AimCamRecoil
				L_88_ = L_24_.AimGunRecoil
				L_90_ = L_24_.AimKickback
				
				L_42_:WaitForChild('Sense'):WaitForChild('Sensitivity').Visible = true
				L_42_:WaitForChild('Sense'):WaitForChild('Sensitivity').Text = L_51_
				L_106_.MouseDeltaSensitivity = L_51_
			elseif (L_3_.Head.Position - L_5_.CoordinateFrame.p).magnitude < 2 and not L_63_ and not L_64_ then
				L_89_ = L_24_.camrecoil
				L_88_ = L_24_.gunrecoil
				L_90_ = L_24_.Kickback
				
				L_42_:WaitForChild('Sense'):WaitForChild('Sensitivity').Visible = false
				L_42_:WaitForChild('Sense'):WaitForChild('Sensitivity').Text = L_51_
				L_106_.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_282_ =  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_282_)
			L_48_.C1 = CFrame.Angles(-math.asin((L_4_.Hit.p - L_4_.Origin.p).unit.y), 0, 0)
			L_106_.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_106_.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)
