Skip to content

Instantly share code, notes, and snippets.

@dr34m-rin
Created March 12, 2026 22:30
Show Gist options
  • Select an option

  • Save dr34m-rin/e5b66b64b04a8ad4017838e8730edfab to your computer and use it in GitHub Desktop.

Select an option

Save dr34m-rin/e5b66b64b04a8ad4017838e8730edfab to your computer and use it in GitHub Desktop.
repeat wait();until game.Players.LocalPlayer.Character local v0="MQS Gun System";local v1=game.Players.LocalPlayer;local v2;local v3;local v4;local v5;local v6;local v7=false;local v8=false;Engine=game.ReplicatedStorage:WaitForChild("ACS_Engine");Evt=Engine:WaitForChild("Eventos");Mod=Engine:WaitForChild("Modulos");local v9=require(Mod:WaitForChild("SpringV2"));local v10=require(Mod:WaitForChild("SpringV2"));local v11=require(Mod:WaitForChild("SpringV5"));PastaHUD=Engine:WaitForChild("HUD");PastaFX=Engine:WaitForChild("FX");GunMods=Engine:WaitForChild("GunMods");GunModels=Engine:WaitForChild("GunModels");GunModelClient=GunModels:WaitForChild("Client");GunModelServer=GunModels:WaitForChild("Server");Utils=require(Mod:WaitForChild("Utilities"));SetupMod=require(Mod:WaitForChild("SetupModule"));Hitmarker=require(Mod:WaitForChild("Hitmarker"));SpringMod=require(Mod:WaitForChild("Spring"));WhizzSounds=require(Mod:WaitForChild("WhizzSounds"));local v12=require(Engine.ServerConfigs:WaitForChild("Config"));local v13=v12.Keybinds;local v14=CFrame.new();function GetSpringModule() local v239=Engine.Modulos.SpringModules:FindFirstChild(v12.SpringModule);if not v239 then v239=Engine.Modulos.SpringModules.Default;end return require(v239);end local v15=script.Parent.Stances:WaitForChild("blindfiremode").Value;animations={};local v16={"Supressor","Suppressor","Silencer","Silenciador"};function FindSilencer(v240) for v658,v659 in pairs(v16) do local v660=v240:FindFirstChild(v659);if v660 then return v660;end end return nil;end BipodReduction=0.25;local v17=GetSpringModule();local v18=0.2;local v19={s=0.1,w=0.4,sl=0.01,rl=0.05,wl=0.2,wb=0.2};ACS_Storage=workspace:WaitForChild("ACS_WorkSpace");function GetRecoilModule() local v241=Engine.Modulos.RecoilModules:FindFirstChild(v12.RecoilModule);if not v241 then v241=Engine.Modulos.RecoilModules['Default'];end return require(v241);end local v20=GetRecoilModule();local v21=game.Workspace.CurrentCamera;local v22;local v23;local v24;local v25=game:GetService("TweenService");local v26=game:GetService("RunService");local v27=v1.Character;local v28=v27:WaitForChild("Humanoid");local v29=v1:GetMouse();local v30=game:GetService("UserInputService");local v31=workspace.CurrentCamera;local v32=false;local v33=false;local v34=false;local v35=v27:WaitForChild("Saude");local v36=v35:WaitForChild("Stances"):WaitForChild("Correndo");local v37=v35:WaitForChild("Stances"):WaitForChild("Stances");local v38,v39,v40,v41,v42,v43,v44;local v45,v46,v47;local v48,v49;local v50,v51,v52,v53,v54;local v55,v56;DefaultBSpeed=nil;local v57=false;local v58=time();local v59,v60=nil,true;local v61=nil;local v62,v63,v64,v65;local v66=1;local v67=0;local v68=false;local v69=false;local v70;local v71=true;local v72=true;local v73=false;local v74=false;local v75=false;local v76=false;local v77;local v78=false;local v79=true;local v80=v1.PlayerGui:FindFirstChild("ModStorage") or Instance.new("Folder") ;v80.Parent=v1.PlayerGui;v80.Name="ModStorage";Aiming=false;GLAim=false;Reloading=false;Bandaging=false;stance=0;NVG=false;Bipod=false;CanPlaceBipod=false;BipodEnabled=false;Silencer=false;Sights=false;FlashlightEnabled=false;LaserEnabled=false;IRmode=false;local v84;local v85;local v86;local v87;local v88;local v89;LaserDist=999;local v90,v91,v92,v93;local v94,v95,v96,v97,v98,v99;local v100,v101,v102,v103;local v104,v105,v106,v107=math.rad,math.sin,math.cos,math.tan;local v108,v109=Vector2.new,Vector3.new;local v110=table.insert;function RANDF(v242,v243) return v242 + (math.random() * v243) ;end function RAND(v244,v245,v246) local v247=1/(v246 or 1) ;return math.random(v244 * v247 ,v245 * v247 )/v247 ;end function RAND2(v248,v249) return ((math.random() -0.5) * v249) + v248 ;end function CFRot(v250) return CFrame.Angles(v250:ToEulerAnglesXYZ());end local v111,v112=Utils.cwait,Utils.cdelay;function Throttle(v251) local v252=0;repeat if (v251<((v252 + 2)/60)) then return v252;end v252=v252 + 1 ;until v252>5 return v252;end local v113=false;local v114=Instance.new;local v115,v116=CFrame.new,CFrame.Angles;local v117,v118,v119,v120,v121=math.asin,math.abs,math.min,math.max,math.random;local v122=tick();local v123=0;local v124=10;aimoffsetthing=v108();local v125=SpringMod.new(v109());v125.s=v17.ss;v125.d=v17.sd;local v130=v9.new(Vector3.new());v130.d=v12.GunSwayDamp;v130.s=v12.GunSwaySpeed;local v135=v9.new(Vector3.new());v135.d=200;v135.s=7;local v138=v9.new(Vector3.new());v138.s=55;v138.d=3;local v141=SpringMod.new(v109());v141.s=v17.ws;v141.d=v17.wd;local v146=SpringMod.new(v109());v146.s=v17.cs;v146.d=v17.cd;local v151=SpringMod.new(v109());v151.s=v17.rs;v151.d=v17.rd;local v156=SpringMod.new(v109());v156.s=v17.rs;v156.d=v17.rd;local v159=SpringMod.new(v109());v159.s=v17.rs;v159.d=v17.rd;local v162=v115();local v163;local v164=Instance.new("Part");local v165=Vector3.new();local v166=v27:WaitForChild("Humanoid");local v167=v27:WaitForChild("Head");local v168=v27:WaitForChild("Torso");local v169=v27:WaitForChild("HumanoidRootPart");local v170=v169:WaitForChild("RootJoint");local v171=v168:WaitForChild("Neck");local v172=v168:WaitForChild("Right Shoulder");local v173=v168:WaitForChild("Left Shoulder");local v174=v168:WaitForChild("Right Hip");local v175=v168:WaitForChild("Left Hip");local v176={};Debris=game:GetService("Debris");WorkspaceServerFolder=ACS_Storage:FindFirstChild("Server");WorkspaceClientFolder=ACS_Storage:FindFirstChild("Client");local v177={v27,WorkspaceServerFolder,v31,WorkspaceClientFolder};local v178={v27,WorkspaceServerFolder,v31,WorkspaceClientFolder};local v179={WorkspaceServerFolder,v31,WorkspaceClientFolder,ACS_Storage,v27};local v180;Evt.AcessId.OnClientEvent:Connect(function(v253) v180=v253;end);Evt.AcessId:FireServer(v1.UserId);v31.CameraType=Enum.CameraType.Custom;v31.CameraSubject=v166;local v184={Top=1,Helmet=1,Up=1,Down=1,Face=1,Olho=1,Headset=1,Numero=1,Vest=1,Chest=1,Back=1,Belt=1,Leg1=1,Leg2=1,Arm1=1,Arm2=1,FakeWindow=1};local v185={Top=1,Helmet=1,Face=1,Olho=1,Headset=1,Numero=1};local v186={Chest=1,Vest=1,Waist=1,Belt=1,Back=1};local v187={Leg1=1,Leg2=1,Arm1=1,Arm2=1};local v188={UpperTorso=1,LowerTorso=1,Torso=1,HumanoidRootPart=1};local v189={LeftFoot=1,LeftLowerLeg=1,LeftUpperLeg=1,RightFoot=1,RightLowerLeg=1,RightUpperLeg=1,LeftHand=1,LeftLowerArm=1,LeftUpperArm=1,RightHand=1,RightLowerArm=1,RightUpperArm=1,["Right Arm"]=1,["Left Arm"]=1,["Right Leg"]=1,["Left Leg"]=1};local v190=v12.RicochetEnabled;local v191,v192,v193;if v190 then v192=v12.RicochetMaterialMaxAngles;v191=v12.RicochetSpecialNames;v193=v12.RicochetLoss;end local v194;local v195=v12.WallbangEnabled;local v196,v197;if v195 then v196=v12.WallbangMaterialHardness;v197=v12.WallbangSpecialNames;end local v198=v31:FindFirstChild("BasePart");if (v198 and v198:IsA("BasePart")) then v198:Destroy();end local v199=Instance.new("Part");v199.Name="BasePart";v199.Anchored=true;v199.CanCollide=false;v199.Transparency=1;v199.Size=Vector3.new(0.1,0.1,0.1);v199.Parent=v31;local v206=Instance.new("Attachment");v206.Parent=v199;local v208=PastaHUD:WaitForChild("StatusUI");local v209=v208:Clone();v209.Parent=v1.PlayerGui;if v12.EnableHunger then v209.FomeSede.Disabled=false;end local v211;if v12.EnableGPS then v211=PastaHUD:WaitForChild("GPShud"):Clone();v211.Parent=v1.PlayerGui;v211.GPS.Disabled=false;end function ResetWorkspace() WorkspaceServerFolder:ClearAllChildren();WorkspaceClientFolder:ClearAllChildren();end Evt.Hit.OnClientEvent:Connect(function(v254,v255,v256,v257,v258,v259,v260,v261) if (v254~=v1) then Hitmarker.HitEffect(v177,ACS_Storage,v255,v256,v257,v258,v259,v260,v261);end end);Evt.RicoSound.OnClientEvent:Connect(function(v262,v263) if (v262~=v1) then Hitmarker.RicoSound(v263);end end);local v212=script.Parent.Parent.HumanoidRootPart:WaitForChild("Died");v212.SoundId="rbxassetid://" .. v12.DeathSoundID ;function MuzzleFX(v264,v265,v266,v267) if v264 then for v1048,v1049 in pairs(v264:GetChildren()) do if v1049:IsA("Motor6D") then elseif (v265 and (string.sub(v1049.Name,1,12)=="FlashFX[Flash]")) then v1049.Enabled=true;elseif (v266 and (string.sub(v1049.Name,1,7)=="FlashFX")) then if (math.random()<0.75) then v1049.Enabled=true;else v1049.Enabled=false;end elseif (string.sub(v1049.Name,1,5)=="Smoke") then v1049.Enabled=true;end end end end function StopMuzzleFX(v268) for v670,v671 in pairs(v268:GetChildren()) do if v671:IsA("Motor6D") then elseif ((string.sub(v671.Name,1,7)=="FlashFX") or (string.sub(v671.Name,1,5)=="Smoke")) then v671.Enabled=false;end end end function GunGrip(v269) if not v4 then return;end local v270=v269:WaitForChild("S" .. v4.Name );local v271=v270:WaitForChild("Grip");return v271;end function LerpCloneC1(v272,v273,v274) v103.C1=v103.C1:Lerp(v272,math.min(1,v273 * v274 ));if not v163 then v163=v103.C1;else v163=v163:Lerp(v272,math.min(1,v273 * v274 ));end end Evt.Atirar.OnClientEvent:Connect(function(v276,v277,v278,v279,v280) if (v276~=v1) then local v746=v276.Character:FindFirstChild("S" .. v279.Name );if v746 then local v1124=v746.Grip:FindFirstChild("Counter");if not v1124 then v1124=Instance.new("IntValue");v1124.Name="Counter";v1124.Parent=v746.Grip;end v1124.Value=v1124.Value + 1 ;if not v280 then v280=v12.MuzzleFXDelay;end local v1126=v746:FindFirstChild("SmokePart") or v746.Grip:FindFirstChild("Muzzle") ;if v1126 then local v1325=FindSilencer(v276.Character["S" .. v279.Name ]);if (v1325 and (v1325.Transparency==0)) then local v1403=v1126:FindFirstChild("Silencer");if v1403 then MuzzleFX(v1403,true,true,v280);else MuzzleFX(v1126,false,false,v280);end else MuzzleFX(v1126,true,true,v280);end end local v1127=v746:FindFirstChild("Chamber") or v746.Grip:FindFirstChild("Chamber") ;if v1127 then MuzzleFX(v1127,v280);end v112(v280,function() v1124.Value=v1124.Value-1 ;if (v1124.Value==0) then if v1126 then StopMuzzleFX(v1126);end if v1127 then StopMuzzleFX(v1127);end local v1395=v1126:FindFirstChild("Silencer");if v1395 then StopMuzzleFX(v1395);end end end);end if ((v276.Character:FindFirstChild("AnimBase")~=nil) and v276.Character.AnimBase:FindFirstChild("AnimBaseW")) then local v1128=v276.Character:WaitForChild("AnimBase"):WaitForChild("AnimBaseW");v25:Create(v1128,TweenInfo.new(v277),{C1=v278.ShootPos}):Play();v111(v277 * 2 );v25:Create(v1128,TweenInfo.new(0.2),{C1=CFrame.new()}):Play();end end end);function fallback(v281,v282,v283) local v284=v281[v282];if not v284 then v284=v283;end return v284;end function fbFolder(v285,v286,v287,v288) local v289=v285:FindFirstChild(v286);if not v289 then v289=Instance.new(v287);v289.Name=v286;v289.Value=v288;v289.Parent=v285;end return v289;end fbAnims=require(Mod.Animation.DefaultAnims);local v214={};local v215={looping=false};local v216;function Setup(v290) local v291=v27:FindFirstChild("Torso");local v292=v27:FindFirstChild("Head");local v293=v27:FindFirstChild("HumanoidRootPart");if not (v291 and v292 and v293) then return;end v4=v290;local v294=GunModelClient:WaitForChild(v4.Name);if v294 then v5=v294:Clone();else Unset();return;end v22=v290.ACS_Modulo.Variaveis;v23=require(v22:WaitForChild("Settings"));v24=require(v22:WaitForChild("Animations"));if v23.CamSpeed then v146.s=v23.CamSpeed;end if v23.CamDamper then v146.d=v23.CamDamper;end v40=v23.VPunchBase;v41=v23.HPunchBase;v42=v23.DPunchBase;if v23.PunchSpeed then v151.s=v23.PunchSpeed;v156.s=v23.PunchSpeed;v159.s=v23.PunchSpeed;end if v23.PunchDamper then v151.d=v23.PunchDamper;v156.d=v23.PunchDamper;v159.s=v23.PunchSpeed;end v43=v23.MinRecoilPower;RecoilPunch=v23.RecoilPunch;AimRecoilReduction=v23.AimRecoilReduction;v44=v23.MinSpread;MaxSway=v23.MaxSway;DefaultBSpeed=v23.BSpeed;RPStepAmount=fallback(v23,"RecoilPowerStepAmount",v12.RecoilPowerStepAmount);AIStepAmount=fallback(v23,"AimInaccuracyStepAmount",v12.AimInaccuracyStepAmount);AIDecrease=fallback(v23,"AimInaccuracyDecrease",v12.AimInaccuracyDecrease);OffsetAngle=fallback(v23,"OffsetAngle",v12.OffsetAngle);OffsetSens=fallback(v23,"OffsetSens",v12.OffsetSens);CanADS=fallback(v23,"CanADS",v12.CanADS);CrossHairEnabled=fallback(v23,"CrossHairEnabled",v12.CrossHairEnabled);if v12.ForceDamageableObjectsFallback then if v23.DamageableObjects then for v1287,v1288 in pairs(v12.DamageableObjects) do if not v23.DamageableObjects[v1287] then v23.DamageableObjects[v1287]=v1288;end end else v23.DamageableObjects=v12.DamageableObjects;end elseif not v23.DamageableObjects then v23.DamageableObjects=v12.DamageableObjects;end AimTime=fbFolder(v22,"AimTime","NumberValue",v12.AimTime);Silencer=fbFolder(v22,"Suppressor","BoolValue",false);v70=fbFolder(v22,"Slideback","BoolValue",false);Sights=fbFolder(v22,"IronSights","BoolValue",v12.IronSights);v45,v46,v47=v22.Ammo,v22.StoredAmmo,v22.LauncherAmmo;v50,v53,v51,v54=v22.Chambered,v22.Emperrado,v22.GLChambered,v22.MG;con1=v50.Changed:Connect(AutoLoopCheck);con2=v53.Changed:Connect(AutoLoopCheck);v48=1/(v23.FireRate/60) ;v49=1/(v23.BurstFireRate/60) ;v52=v23.ModoTreino;v55=v22.Sens;v56=v22.Zeroing;if v195 then v194=v12.WallbangBulletIndex[v23.BulletType];if not v194 then local v1133=(v23.LimbsDamage[1] + v23.LimbsDamage[2] + v23.TorsoDamage[1] + v23.TorsoDamage[2] + v23.HeadDamage[1] + v23.HeadDamage[2])/6 ;v194=(35 * v12.WallbangConstant)/v120(100 -v23.BulletPenetration ,1) ;end end Evt.Equipar:FireServer(v4,v23);v102=Instance.new("Model",v31);v102.Name=v290.Name;local v317=v102:GetChildren();if (v102 and v102:GetChildren()) then for v1050,v1051 in pairs(v102:GetChildren()) do if v1051:IsA("Instance") then v1051:Destroy();end end else print("Folder is empty or doesn't exist");end v100=Instance.new("Part",v102);v100.FormFactor="Custom";v100.CanCollide=false;v100.Transparency=1;v100.Anchored=true;v100.Name="AnimBase";v100.Size=Vector3.new(0.1,0.1,0.1);v101=Instance.new("Motor6D");v101.Part0=v100;v101.Part1=v199;v101.Parent=v100;v101.Name="AnimBaseW";v100.Anchored=false;v103=Instance.new("Motor6D");v103.Name="Clone";v103.Parent=v100;v103.Part0=v100;v103.Part1=v199;v5.Parent=v102;local v333=v5:WaitForChild("Handle");if v23.RigWeld then for v1052,v1053 in pairs(v5:GetChildren()) do if ( not v1053:IsA("BasePart") or (v1053.Name=="Handle")) then elseif ((v1053.Name=="Bolt") or (v1053.Name=="Slide")) then if v5:FindFirstChild("BoltHinge") then if (v5.BoltHinge:FindFirstChild("BoltOnly") and (v1053.Name=="Slide")) then else Utils.WeldComplex(v5.BoltHinge,v1053,v333);end else Utils.WeldComplex(v333,v1053,v333);end elseif (v1053.Name=="Lid") then if v5:FindFirstChild("LidHinge") then Utils.Weld(v5:WaitForChild("LidHinge"),v1053,v1053);else Utils.Weld(v333,v1053,v1053);end elseif v1053:FindFirstChild("HingeMotor") then local v1471=v1053.HingeMotor.Value;Utils.Weld(v1471,v1053,v1053);else Utils.Weld(v333,v1053,v1053);end end else for v1054,v1055 in pairs(v5:GetChildren()) do if ( not v1055:IsA("BasePart") and (v1055.Name=="Handle")) then elseif ((v1055.Name=="Bolt") or (v1055.Name=="Slide")) then if v5:FindFirstChild("BoltHinge") then if (v5.BoltHinge:FindFirstChild("BoltOnly") and (v1055.Name=="Slide")) then else Utils.WeldComplex(v5.BoltHinge,v1055,v333);end else Utils.WeldComplex(v333,v1055,v333);end elseif (v1055.Name=="Lid") then if v5:FindFirstChild("LidHinge") then Utils.Weld(v1055,v5:WaitForChild("LidHinge"),v1055);else Utils.Weld(v1055,v333,v1055);end elseif v1055:FindFirstChild("HingeMotor") then local v1472=v1055.HingeMotor.Value;Utils.Weld(v1055,v1472,v1055);else Utils.Weld(v1055,v333,v1055);end end end for v672,v673 in pairs(v5:GetChildren()) do if (v673:IsA("BasePart") and (v673.Name~="Grip")) then v673.Anchored=false;v673.CanCollide=false;end end LoadClientMods();v92,v93,v91,v90,v100,v101,v94,v95,v96,v97,v98,v99=SetupMod(v102,Utils,v27,v92,v93,v91,v90,v100,v101,v23,v5,v94,v95,v96,v97,v98,v99);v33=true;local v334=FindSilencer(v5);if v334 then if Silencer.Value then v334.Transparency=0;else v334.Transparency=1;end Evt.SilencerEquip:FireServer(v4,Silencer.Value);end if (v12.Crosshair and CrossHairEnabled) then v61=PastaHUD.CrossHair:Clone();local v764=Instance.new("Attachment");v764.Parent=v5.SmokePart;v764.Position=Vector3.new(0,0, -100);v62=UDim2.new(0.5,0,0.5, -v44);v63=UDim2.new(0.5,0,0.5,v44);v64=UDim2.new(0.5, -v44,0.5,0);v65=UDim2.new(0.5,v44,0.5,0);v61.Parent=v764;v61.Up.Position=v62;v61.Down.Position=v63;v61.Left.Position=v64;v61.Right.Position=v65;if (v23.Bullets>1) then v61.Up.Rotation=90;v61.Down.Rotation=90;v61.Left.Rotation=90;v61.Right.Rotation=90;v61.Up.Size=UDim2.new(0,1,0,10);v61.Down.Size=UDim2.new(0,1,0,10);v61.Left.Size=UDim2.new(0,10,0,1);v61.Right.Size=UDim2.new(0,10,0,1);end if not v12.DynamicCrosshair then v61.Adornee=v199;end end local v334=FindSilencer(v5);if v334 then if Silencer.Value then v334.Transparency=0;else v334.Transparency=1;end end if (v23.OpenBolt and not v53.Value and v50.Value) then v5.Handle:WaitForChild("Slide").C0=CFrame.new(v23.SlideExtend) * CFRot(v5.Handle.Slide.C0) ;if v23.MoveBolt then v5.Handle:WaitForChild("Bolt").C0=CFrame.new(v23.BoltExtend) * CFRot(v5.Handle.Bolt.C0) ;end end if (v70.Value==true) then v5.Handle:WaitForChild("Slide").C0=CFrame.new(v23.SlideExtend) * CFRot(v5.Handle.Slide.C0) ;if (v23.MoveBolt and v23.BoltLock) then v5.Handle:WaitForChild("Bolt").C0=CFrame.new(v23.BoltExtend) * CFRot(v5.Handle.Bolt.C0) ;end end if v23.AutoLoop then local v775=GunGrip(v27);v215.looping=false;end end function Unset() if con1 then con1:Disconnect();end if con2 then con2:Disconnect();end StopLoops();if v4 then Evt.Desequipar:FireServer(v4,v23);end UnloadClientMods();if v102 then v102:Destroy();end v33=false;v73=false;Bipod=false;FlashlightEnabled=false;IRmode=false;LaserEnabled=false;v75=false;Reloading=false;Bandaging=false;v76=false;v69=false;v30.MouseIconEnabled=true;game:GetService("UserInputService").MouseDeltaSensitivity=1;v31.CameraType=Enum.CameraType.Custom;v1.CameraMode=Enum.CameraMode.Classic;v66=1;stance=0;tweenFoV(70,15);v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();if v59 then v59.Visible=false;end for v674,v675 in pairs(v176) do if v675.Connected then v675:Disconnect();end end table.clear(v176);v176={};v113=false;a=false;d=false;v18=0;v151.s=v17.rs;v156.s=v17.rs;v159.d=v17.rd;v151.d=v17.rd;v156.d=v17.rd;v159.d=v17.rd;v146.s=v17.cs;v146.d=v17.cd;v214={};end function ColorBars(v352,v353,v354) local v355=Color3.new(v352,v353,v354);for v676,v677 in ipairs(v59.FireModes:GetChildren()) do v677.BackgroundColor3=v355;end end function CheckMagFunction() if (v59 and v60) then local v778=v59.Frame.CheckGUI.Frame.CMText;v778.TextTransparency=0;v778.TextStrokeTransparency=0.9;v59.Frame.CheckGUI.Adornee=v5.Mag;if not v23.VisibleBullets then local v1149=math.ceil((v23.Ammo/2) -0.5 );local v1150=math.ceil(((v23.Ammo * 5)/6) -0.5 );local v1151=math.ceil((v23.Ammo/6) -0.5 );if (v45.Value>=v23.Ammo) then v778.Text="Full, " .. v23.Ammo .. " Rounds" ;elseif (v45.Value<=0) then v778.Text="Empty";elseif ((v45.Value<=(v1149 + 1)) and (v45.Value>=(v1149-1))) then v778.Text="Half, ~" .. v1149 .. " Rounds" ;elseif (v45.Value>v1150) then v778.Text="Almost Full, " .. v23.Ammo .. " Rounds" ;elseif (v45.Value<v1151) then v778.Text="Almost Empty, " .. v23.Ammo .. " Rounds" ;elseif (v45.Value>v1149) then v778.Text="Over " .. v1149 .. " Rounds" ;elseif (v45.Value<v1149) then v778.Text="Less than " .. v1149 .. " Rounds" ;end else v778.Text=v45.Value .. " Rounds" ;end v25:Create(v778,TweenInfo.new(10),{TextTransparency=1,TextStrokeTransparency=1}):Play();end end function DoAdsMesh(v356) for v679,v680 in pairs(v5:GetDescendants()) do if v680:IsA("BasePart") then if (v680.Name=="REG") then if ((v356==0) and v680:FindFirstChild("Trans")) then v25:Create(v680,TweenInfo.new(0.1),{Transparency=v680:FindFirstChild("Trans").Value}):Play();else v25:Create(v680,TweenInfo.new(0.1),{Transparency=v356}):Play();end elseif (v680.Name=="ADS") then if ((v356==1) and v680:FindFirstChild("Trans")) then v25:Create(v680,TweenInfo.new(0.1),{Transparency=v680:FindFirstChild("Trans").Value}):Play();else v25:Create(v680,TweenInfo.new(0.1),{Transparency=1 -v356 }):Play();end end end end end function Sprint() if v33 then if (v3 and (v67>0)) then v77=false;if Aiming then game:GetService("UserInputService").MouseDeltaSensitivity=1;v5.Handle.AimUp:Play();tweenFoV(70,120);Aiming=false;if (v23.adsMesh1 or v23.adsMesh2) then DoAdsMesh(0);end v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();end if (((stance==0) or (stance==2)) and not v74) then v8=false;stance=3;Evt.Stance:FireServer(stance,v23,v24);SprintAnim();end elseif ( not v3 or (v67==0)) then if ( not v73 and not v74) then if (Aiming and (v8==false)) then stance=2;Evt.Stance:FireServer(stance,v23,v24);v8=false;IdleAnim();elseif (v8==true) then stance=0;else stance=0;Evt.Stance:FireServer(stance,v23,v24);v8=false;IdleAnim();end end end end end v36.Changed:connect(function(v357) v3=v357;Sprint();end);function AimObstructed() if Aiming then game:GetService("UserInputService").MouseDeltaSensitivity=1;v5.Handle.AimUp:Play();tweenFoV(70,120);Aiming=false;if (v23.adsMesh1 or v23.adsMesh2) then DoAdsMesh(0);end v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();end end local v104,v105,v217,v106=math.rad,math.sin,math.atan2,math.cos;local v218;DEFAULT_FOV=70;function tweenFoV(v358,v359) coroutine.resume(coroutine.create(function() if ( not v31 or not v31.Parent) then return;end v218=(v218 and (v218 + 1)) or 0 ;local v681=v218;for v784=10,v359 do v26.RenderStepped:Wait();if ( not v31 or not v31.Parent) then break;end if (v218~=v681) then break;end if not v33 then v31.FieldOfView=DEFAULT_FOV;return;end v31.FieldOfView=v31.FieldOfView + ((v358-v31.FieldOfView) * (v784/v359)) ;end end));end function Lerp(v360,v361,v362) return v360 + ((v361-v360) * v362) ;end local v219=CFrame.new(0,0.8,0,1,0,0,0,1,0,0,0,1);local v220= -0.7;local v221=false;local function v222(v363) Evt.tiltAt:FireServer(v117(v21.CFrame.LookVector.y),v117(v21.CFrame.LookVector.X),v21,v4);if not v221 then v221=true;Evt.SoundAt:FireServer();v111(0.1);v221=false;end end function tweenJoint(v364,v365,v366,v367,v368) coroutine.wrap(function() if ( not v364 or not v364.Parent) then return;end local v682=math.random( -1000000000,1000000000);local v683=v364:FindFirstChild("tweenCode");if not v683 then v683=Instance.new("IntValue");v683.Name="tweenCode";v683.Parent=v364;end v683.Value=v682;if (v368<=0) then if v365 then v364.C0=v365;end if v366 then v364.C1=v366;end return;end local v685=1.5/v368 ;local v686=v364.C0;local v687=v364.C1;local v688=0;while v688<90 do v26.RenderStepped:Wait();if ( not v364 or not v364.Parent) then break;end if not v33 then break;end if (v683.Value~=v682) then break;end v688=math.min(v688 + v685 ,90);if v365 then v364.C0=v686:lerp(v365,v367(v688));end if v366 then v364.C1=v687:lerp(v366,v367(v688));end end if (v683 and v683.Parent and (v683.Value==v682)) then v683:Destroy();end end)();end local v223=game.ReplicatedStorage:WaitForChild("Animations");function UnloadClientMods() for v689,v690 in pairs(v80:GetChildren()) do if v690:IsA("LocalScript") then v690:Destroy();end end end function CheckForHumanoid(v369) local v370=false;local v371=nil;pcall(function() if v369 then if v369.Parent then if v369.Parent:FindFirstChildOfClass("Humanoid") then v371=v369.Parent:FindFirstChildOfClass("Humanoid");v370=true;elseif v369.Parent.Parent:FindFirstChildOfClass("Humanoid") then v371=v369.Parent.Parent:FindFirstChildOfClass("Humanoid");v370=true;end end end end);return v370,v371;end function ShellEjectSound() delay(math.random(4,8)/10 ,function() if PastaFX:FindFirstChild("ShellCasing") then local v1060=PastaFX.ShellCasing:clone();v1060.Parent=v1.PlayerGui;v1060.PlaybackSpeed=math.random(30,50)/40 ;v1060.PlayOnRemove=true;Debris:AddItem(v1060,0);end end);end local v224=1;function TracerCalculation() local v372;if v23.RandomTracer then if (math.random(1,100)<=v23.TracerChance) then v372=true;else v372=false;end elseif (v224>=v23.TracerEveryXShots) then v372=true;v224=1;else v224=v224 + 1 ;end return v372;end function CreateBullet(v373) local v374=196.2 * v23.BDrop * 0.8 ;local v375=Instance.new("Part");v375.Name=v1.Name .. "_Bullet" ;v375.CanCollide=false;v375.Transparency=1;v375.FormFactor="Custom";v375.Size=Vector3.new(1,1,1);local v381=v375:GetMass();local v382=Vector3.new(0,v381 * v374 ,0);local v383=Instance.new("BodyForce");v383.force=v382;v383.Parent=v375;local v386=v5.SmokePart.Position;local v387=v117(v119(1,v120( -1,((2 * v374 * v56.Value * 4)/(v23.BSpeed^2)) * 2.7 )))/2 ;local v388=(v5.SmokePart.CFrame.lookVector * v106(v387)) + (v5.SmokePart.CFrame.upVector * v105(v387)) ;local v389=v115(v386,v386 + v388 );local v390=v373 + ((v67/v35.Stances.Mobility.Value) * v23.WalkMultiplier) ;local v391=v116(v104(RAND( -v390,v390)/20 ),v104(RAND( -v390,v390)/20 ),v104(RAND( -v390,v390)/20 ));v388=v391 * v388 ;v375.Parent=WorkspaceClientFolder;v375.CFrame=v389 + v388 ;v375.Velocity=v388 * v23.BSpeed ;local v395=Color3.new(math.random());local v396=TracerCalculation();if ((v23.BulletFlare==true) and v396) then local v786=Instance.new("BillboardGui",v375);v786.Adornee=v375;v786.Enabled=false;local v789=math.random(275,375)/10 ;v786.Size=UDim2.new(v789,0,v789,0);v786.LightInfluence=0;local v792=Instance.new("ImageLabel",v786);v792.BackgroundTransparency=1;v792.Size=UDim2.new(1,0,1,0);v792.Position=UDim2.new(0,0,0,0);v792.Image="http://www.roblox.com/asset/?id=1047066405";if (v23.RainbowMode==true) then v792.ImageColor3=v395;else v792.ImageColor3=v23.BulletFlareColor;end v792.ImageTransparency=math.random(2,5)/15 ;coroutine.wrap(function() wait(0.2);if (v375:FindFirstChild("BillboardGui")~=nil) then v375.BillboardGui.Enabled=true;end end)();end if ((v23.Tracer==true) and v396) then local v798=Instance.new("Attachment");v798.Name="At1";v798.Position=Vector3.new( -v23.TracerWidth,0,0);v798.Parent=v375;local v802=Instance.new("Attachment");v802.Name="At2";v802.Position=Vector3.new(v23.TracerWidth,0,0);v802.Parent=v375;local v806=Instance.new("Trail");if v23.FullTracer then v806.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0)});v806.WidthScale=NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,2)});else v806.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1)});v806.WidthScale=NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,1)});end if (v23.RainbowMode==true) then v806.Color=ColorSequence.new(v395);else v806.Color=ColorSequence.new(v23.TracerColor);end v806.Texture="rbxassetid://4107607856";v806.TextureMode=Enum.TextureMode.Stretch;v806.FaceCamera=true;v806.LightEmission=v23.TracerLightEmission;v806.LightInfluence=v23.TracerLightInfluence;v806.Lifetime=v23.TracerLifeTime;v806.Attachment0=v798;v806.Attachment1=v802;v806.Parent=v375;end if ((v23.BulletLight==true) and v396) then local v820=Instance.new("PointLight");v820.Parent=v375;v820.Brightness=v23.BulletLightBrightness;if (v23.RainbowMode==true) then v820.Color=v395;else v820.Color=v23.BulletLightColor;end v820.Range=v23.BulletLightRange;v820.Shadows=true;end if v396 then if v12.ReplicatedBullets then Evt.ServerBullet:FireServer(v389,v23.Tracer,v23.BDrop,v23.BSpeed,v388,v23.TracerColor,v177,v23.BulletFlare,v23.BulletFlareColor,v23.Distance,v23.FullTracer);end end game.Debris:AddItem(v375,5);return v375;end function CalculateDamage(v397,v398,v399,v400) local v401=0;local v402=0;local v403=0;local v404=v397-((math.ceil(v398)/40) * v23.FallOfDamage) ;if (v399.Parent:FindFirstChild("Saude")~=nil) then local v827=v399.Parent.Saude.Protecao.VestVida;local v828=v399.Parent.Saude.Protecao.VestProtect;local v829=v399.Parent.Saude.Protecao.HelmetVida;local v830=v399.Parent.Saude.Protecao.HelmetProtect;if (v400=="Head") then if ((v829.Value>0) and (v23.BulletPenetration<v830.Value)) then v401=v404 * (v23.BulletPenetration/v830.Value) ;v403=v404 * ((100 -v23.BulletPenetration)/v830.Value) ;if (v403<=0) then v403=0.5;end elseif ((v829.Value>0) and (v23.BulletPenetration>=v830.Value)) then v401=v404;v403=v404 * ((100 -v23.BulletPenetration)/v830.Value) ;if (v403<=0) then v403=1;end elseif (v829.Value<=0) then v401=v404;end elseif ((v827.Value>0) and (v23.BulletPenetration<v828.Value)) then v401=v404 * (v23.BulletPenetration/v828.Value) ;v402=v404 * ((100 -v23.BulletPenetration)/v828.Value) ;if (v402<=0) then v402=0.5;end elseif ((v827.Value>0) and (v23.BulletPenetration>=v828.Value)) then v401=v404;v402=v404 * ((100 -v23.BulletPenetration)/v828.Value) ;if (v402<=0) then v402=1;end elseif (v827.Value<=0) then v401=v404;end else v401=v404;end v401=v120(0,v401);return v401,v402,v403;end function WhizzVolFunction(v405,v406) return (v406-(v405/v405))^2 ;end Evt.Whizz.OnClientEvent:connect(function(v407,v408,v409,v410,v411) local v412;if v409:FindFirstChild("Whizz") then local v831=v409.Whizz:GetChildren();v412=v831[math.random( #v831)]:Clone();v412.Parent=v1.PlayerGui;else v412=Instance.new("Sound");v412.Parent=v1.PlayerGui;local v836;local v837;if ((v410<35) and (v410<v411)) then v836=WhizzSounds.Close;v837=v408 * 0.5 * WhizzVolFunction(v411,v410) ;elseif ((v410<80) and (v410>35) and (v410<v411)) then v836=WhizzSounds.Medium;v837=v408 * 0.5 * WhizzVolFunction(v411,v410) ;elseif ((v410>80) and (v410<v411)) then v836=WhizzSounds.Far;v837=v408 * 0.5 * WhizzVolFunction(v411,v410) ;end v412.SoundId="rbxassetid://" .. v836[math.random(1, #v836)] ;v412.Volume=v837;end v412.PlayOnRemove=true;v412:Destroy();end);Evt.DamageShake.OnClientEvent:Connect(function(v414,v415) local v416=require(game.ReplicatedStorage.CameraShaker);local v417=workspace.CurrentCamera;if (v415==v1.Name) then local v840=v416.new(Enum.RenderPriority.Camera.Value,function(v1065) v417.CFrame*=v1065 end);v840:Start();v840:ShakeOnce(0.82,3,0,0.3,0,5);task.wait(0.2);v840:Stop();else return;end end);Evt.Suppression.OnClientEvent:Connect(function(v418,v419,v420) if (v12.EnableStatusUI and v1.Character and (v28.Health>0)) then local v841=require(game.ReplicatedStorage.CameraShaker);local v842=workspace.CurrentCamera;local v843=script.Parent.FX.Vinheta:Clone();v843.Parent=v1.PlayerGui:WaitForChild("mqsnoob");v843.ImageTransparency=1;local v846=v841.new(Enum.RenderPriority.Camera.Value,function(v1066) v842.CFrame=v842.CFrame * v1066 ;end);v846:Start();v846:ShakeOnce(0.82,3,0,0.3 * v420 );v25:Create(v843,TweenInfo.new(0.25,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,0),{ImageTransparency=(v419-1) * -1 }):Play();delay(0.1,function() v25:Create(v843,TweenInfo.new(v420/3 ,Enum.EasingStyle.Sine,Enum.EasingDirection.In,0,false,0),{ImageTransparency=1}):Play();Debris:AddItem(v843,v420);end);end end);function CastRay(v421) local v422,v423,v424,v425;local v426,v427,v428,v429;local v430;local v431;local v432=1;local v433,v434;local v435=RaycastParams.new();v435.FilterDescendantsInstances=v177;v435.FilterType=Enum.RaycastFilterType.Exclude;v435.IgnoreWater=v12.IgnoreWater;if Aiming then if (v5:FindFirstChild("AimPart2") and (v66==2)) then v434=v5.AimPart2.Position;else v434=v5.AimPart.Position;end else v434=v5.Handle.Position;end local v441=workspace:Raycast(v434,v5.SmokePart.Position-v434 ,v435);if v441 then v433=v434;else v433=v5.SmokePart.Position;end local v442=v5.SmokePart.Position;local v443=v5.SmokePart.CFrame.LookVector;local v444=v421.Position;local v445=0;local v446;local v447=false;local v448={};local v449=false;local v450=Vector3.new(0,0,0);local v451=RaycastParams.new();v451.IgnoreWater=v12.IgnoreWater;v451.FilterDescendantsInstances=v177;v451.FilterType=Enum.RaycastFilterType.Blacklist;local function v456(v691,v692) local v693=v691[v692];if v693 then return v693;else return v691['default'];end end local function v457() if ((v450-v427).Magnitude<v12.MinRicoTravelDistance) then v421:Destroy();BulletHit(v426,v427,v428,v429,v445,v432);v447=true;return;end local v694=math.deg(math.acos(v430.Unit:Dot(v428.Unit))) -90 ;local v695=v456(v191,v426.Name);if ((v695 and (v694<v695)) or (v694<v456(v192,v429.Name))) then BulletHit(v426,v427,v428,v429,v445,v432 * v12.RicoDamageMult ,"Rico");v421.Position=v427;v421.Velocity=v421.Velocity.Magnitude * (v430.Unit-(2 * v430.Unit:Dot(v428) * v428)).Unit ;v432=v432 * (1 -v193) ;v450=v427;v433=v421.Position;v449=true;if (v12.RicoSoundEnabled and (v429~=Enum.Material.Water)) then Hitmarker.RicoSound(v427);Evt.RicoSound:FireServer(v427);end else BulletHit(v426,v427,v428,v429,v445,v432);v421:Destroy();v447=true;end end local function v458() local v696=workspace:Raycast(v433,(v444-v433) * 2 ,v451);if v696 then v422,v423,v424,v425=v696.Instance,v696.Position,v696.Normal,v696.Material;else v422=nil;end end local v459={};local v460={};local v461=0;while not v447 do local v697=v26.Heartbeat:Wait();if v12.RaycastThrottle then if (v461==0) then v461=Throttle(v697);else v461=v461-1 ;end end if (v461==0) then if not v421 then return;end v444=v421.Position;v445=v445 + (v444-v433).magnitude ;if (v445>v23.Distance) then v421:Destroy();v447=true;break;end local v1075=Ray.new(v433,v444-v433 );if v23.BulletWhiz then for v1329,v1330 in pairs(game.Players:GetChildren()) do if (v1330:IsA("Player") and (v1330~=v1) and not v459[v1330.Name] and v1330.Character and v1330.Character:FindFirstChild("Head")) then local v1406=v1330.Character.Head.Position;local v1407=(v444-v433).Unit;local v1408=(v1406-v444).Unit;local v1409=math.deg(math.acos(v1408:Dot(v1407))) -90 ;local v1410=(v1406-v442).Unit;local v1411=math.deg(math.acos(v1410:Dot(v443))) -90 ;if ((v1409>=0) and (v1411<=0)) then local v1449=v1075.Unit:Distance(v1406);if ((v1449<=v23.SuppressMaxDistance) and not v1330.Character.Humanoid.Sit) then Evt.Suppression:FireServer(v1330,1,1,v23.SuppressTime);end if (v1449<=v23.BWMaxDistance) then Evt.Whizz:FireServer(v1330,v421.Velocity.Magnitude,v23.BWEmitter,v27:WaitForChild("S" .. v4.Name ):WaitForChild("Grip"),v1449,v23.BWMaxDistance);end if v23.EnableSplashDamage then local v1475=v1330.Character.Humanoid;if ((v1449<=v23.SplashDistance) and (v12.TeamKill or (game.Players:FindFirstChild(v1475.Parent.Name).Team~=v1.Team))) then local v1498=v180 .. "-" .. v1.UserId ;local v1499,v1500,v1501=CalculateDamage(v23.SplashDamage * v432 ,v445,v1475,"Body");Evt.ACS_AI.Damage:FireServer(v1475,v1499,v1500,v1501,v1498);v460[v1330.Name]=true;end end v459[v1330.Name]=true;coroutine.wrap(function() v111(v12.WhizzDebounce);v459[v1330.Name]=false;end);end end end end v458();if v422 then debug.profilebegin("Hit2 Cast");while not v446 do if v422 then if ((v422.CanCollide==false) or (v422.Name=="Ignorable")) then if ( not v189[v422.Name] and (v422.Name~="Armor") and (v422.Name~="EShield")) then v110(v177,v422);v451.FilterDescendantsInstances=v177;v446=true;end elseif v184[v422.Parent.Name] then v110(v177,v422);v451.FilterDescendantsInstances=v177;v446=true;end end if v446 then v458();v446=false;else break;end end debug.profileend();v426,v427,v428,v429,v430=HitRaycast(v444,v433,v177);if v426 then debug.profilebegin("CastRay: Bullet Hit");v432=(v421.Velocity.Magnitude/v23.BSpeed)^2 ;if v195 then local v1443;local v1444;if v177 then v1444={table.unpack(v177)};else v1444={};end local v1445=(v444-v433).Unit;debug.profilebegin("Wallbanging");while true do debug.profilebegin("Wallbang Iteration");if (v426 and (v432>=0)) then local v1478=RaycastParams.new();v1478.FilterDescendantsInstances={v426};v1478.FilterType=Enum.RaycastFilterType.Whitelist;v1478.IgnoreWater=v12.IgnoreWater;if v197[v426.Name] then v1443=v194/v197[v426.Name] ;elseif v196[v429] then v1443=v194/v196[v429.Name] ;else v1443=v194/v196['default'] ;end local v1484=v1443 * v432 ;local v1485=v427 + (v1445 * v1484) ;local v1486= -v1445 * v1484 ;v431=workspace:Raycast(v1485,v1486,v1478);if v431 then local v1503=(v431.Position-v427).Magnitude;v432=math.max(v432-(v1503/v1484) ,0);v110(v1444,v431.Instance);BulletHit(v426,v427,v428,v429,v445,v432,"In");if v426 then Hitmarker.HitEffect(v177,ACS_Storage,v431.Position,v426,v431.Normal,v429,v23,v432,"Out");local v1513=v180 .. "-" .. v1.UserId ;Evt.Hit:FireServer(v431.Position,v426,v431.Normal,v429,v23,v1513,v432,"Out");end v426,v427,v428,v429,v430=HitRaycast(v444,v433,v1444);elseif v190 then v457();break;else v421:Destroy();v447=true;BulletHit(v426,v427,v428,v429,v445,v432);break;end else break;end debug.profileend();end debug.profileend();elseif v190 then v457();else v421:Destroy();BulletHit(v426,v427,v428,v429,v445,v432);v447=true;end if v421 then v421.Velocity=v421.Velocity.Unit * v23.BSpeed * math.sqrt(v432) ;end debug.profileend();end end if v449 then v449=false;else v433=v444;end end end end function HitRaycast(v462,v463,v464) debug.profilebegin("Bullet hit raycast");local v465=v462-v463 ;local v466=RaycastParams.new();v466.FilterDescendantsInstances=v464;v466.FilterType=Enum.RaycastFilterType.Blacklist;v466.IgnoreWater=v12.IgnoreWater;local v472=workspace:Raycast(v463,v465,v466);debug.profileend();if v472 then return v472.Instance,v472.Position,v472.Normal,v472.Material,v465;end return nil,nil,nil,nil,v465;end function InflictDamage(v473,v474,v475,v476,v477) local v478=v180 .. "-" .. v1.UserId ;local v479=math.random(v473[1],v473[2]) * v477 ;local v480,v481,v482=CalculateDamage(v479,v474,v475,v476);Evt.ACS_AI.Damage:FireServer(v475,v480,v481,v482,v478);end function BulletHit(v483,v484,v485,v486,v487,v488,v489) local v490,v491=CheckForHumanoid(v483);Hitmarker.HitEffect(v177,ACS_Storage,v484,v483,v485,v486,v23,v488);local v492=v180 .. "-" .. v1.UserId ;if not v489 then v489="Hit";end Evt.Hit:FireServer(v484,v483,v485,v486,v23,v492,v488,v489);if (v483.Name=="CollisionPart") then local v849=90;v483.Parent.Parent.Parent.Event:FireServer("Damage",v849);end if (v490 and (v491.Health>0)) then if v12.HitmarkerSound then local v1171=PastaFX.Hitmarker:Clone();v1171.Parent=v1.PlayerGui;v1171.Volume=2;v1171.PlayOnRemove=true;Debris:AddItem(v1171,0);end if not v23.ModoTreino then Evt.CreateOwner:FireServer(v491);if not game.Players:FindFirstChild(v491.Parent.Name) then if (v483.Name=="Head") then InflictDamage(v23.HeadDamage,v487,v491,"Head",v488);elseif v188[v483.Name] then InflictDamage(v23.TorsoDamage,v487,v491,"Body",v488);else InflictDamage(v23.LimbsDamage,v487,v491,"Body",v488);end elseif not v12.TeamKill then if ((game.Players:FindFirstChild(v491.Parent.Name) and (game.Players:FindFirstChild(v491.Parent.Name).Team~=v1.Team)) or (game.Players:FindFirstChild(v491.Parent.Name)==nil)) then if ((v483.Name=="Head") or v185[v483.Parent.Name]) then InflictDamage(v23.HeadDamage,v487,v491,"Head",v488);elseif (v483.Parent:IsA("Accessory") or v483.Parent:IsA("Hat")) then InflictDamage(v23.HeadDamage,v487,v491,"Head",v488);elseif (v188[v483.Name] or v186[v483.Parent.Name]) then InflictDamage(v23.TorsoDamage,v487,v491,"Body",v488);elseif v189[v483.Name] then InflictDamage(v23.LimbsDamage,v487,v491,"Body",v488);end end elseif ((game.Players:FindFirstChild(v491.Parent.Name) and (game.Players:FindFirstChild(v491.Parent.Name).Team~=v1.Team)) or (game.Players:FindFirstChild(v491.Parent.Name)==nil)) then if ((v483.Name=="Head") or v185[v483.Parent.Name]) then InflictDamage(v23.HeadDamage,v487,v491,"Head",v488);elseif (v483.Parent:IsA("Accessory") or v483.Parent:IsA("Hat")) then InflictDamage(v23.HeadDamage,v487,v491,"Head",v488);elseif (v188[v483.Name] or v186[v483.Parent.Name]) then InflictDamage(v23.TorsoDamage,v487,v491,"Body",v488);elseif v189[v483.Name] then InflictDamage(v23.LimbsDamage,v487,v491,"Body",v488);end elseif ((v483.Name=="Head") or v185[v483.Parent.Name]) then InflictDamage(v23.HeadDamage,v487,v491,"Head",v488 * v12.TeamDamageMultiplier );elseif (v483.Parent:IsA("Accessory") or v483.Parent:IsA("Hat")) then InflictDamage(v23.HeadDamage,v487,v491,"Head",v488 * v12.TeamDamageMultiplier );elseif (v188[v483.Name] or v186[v483.Parent.Name]) then InflictDamage(v23.TorsoDamage,v487,v491,"Body",v488 * v12.TeamDamageMultiplier );elseif v189[v483.Name] then InflictDamage(v23.LimbsDamage,v487,v491,"Body",v488 * v12.TeamDamageMultiplier );end elseif ((v483.Name=="Head") or (v483.Parent.Name=="Top") or (v483.Parent.Name=="Headset") or (v483.Parent.Name=="Olho") or (v483.Parent.Name=="Face") or (v483.Parent.Name=="Numero") or v483.Parent:IsA("Accessory") or v483.Parent:IsA("Hat") or (v483.Name=="Torso") or (v483.Parent.Name=="Chest") or (v483.Parent.Name=="Vest") or (v483.Parent.Name=="Waist") or (v483.Name=="Right Arm") or (v483.Name=="Left Arm") or (v483.Name=="Right Leg") or (v483.Name=="Left Leg") or (v483.Parent.Name=="Back") or (v483.Parent.Name=="Leg1") or (v483.Parent.Name=="Leg2") or (v483.Parent.Name=="Arm1") or (v483.Parent.Name=="Arm2")) then Evt.Treino:FireServer(v491);end elseif (v483 and v23.DamageableObjects) then local v1176=v483:FindFirstChild("ACSObject");if ( not v1176 and v483.Parent) then v1176=v483.Parent:FindFirstChild("ACSObject");end if v1176 then local v1331=v23.DamageableObjects[v1176.Value];if v1331 then local v1412=v1176.Parent:FindFirstChild("ACSHealth");if v1412 then local v1451=v180 .. "-" .. v1.UserId ;local v1452=math.random(v1331[1],v1331[2]);Evt.DamageObject:FireServer(v1451,v1412,v1452);end end end end end v28.Running:connect(function(v493) if v33 then v67=v493;Sprint();if (v493>1) then v113=true;else v113=false;end end end);v29.KeyDown:connect(function(v494) if v33 then if (v494=="w") then if not w then w=true;end end if (v494=="a") then if not a then a=true;end end if (v494=="s") then if not s then s=true;end end if (v494=="d") then if not d then d=true;end end end end);v29.KeyUp:connect(function(v495) if v33 then if (v495=="w") then if w then w=false;end end if (v495=="a") then if a then a=false;end end if (v495=="s") then if s then s=false;end end if (v495=="d") then if d then d=false;end end end end);function SlideEx(v496) local v497=v496/4 ;if (v23.DisableSlideExtend or (v23.Mode=="Bolt-Action") or (v23.Mode=="Pump-Action")) then return;end if ( not v5 or not v5:IsDescendantOf(game)) then return;end local v498=v5:FindFirstChild("Handle");if not v498 then return;end local v499=v498:FindFirstChild("Slide");if v499 then tweenJoint(v499,CFrame.new(v23.SlideExtend) * CFRot(v499.C0) ,nil,function(v1076) return math.sin(math.rad(v1076));end,v497);end if v23.MoveBolt then local v850=v498:FindFirstChild("Bolt");if v850 then tweenJoint(v850,CFrame.new(v23.BoltExtend) * CFRot(v850.C0) ,nil,function(v1292) return math.sin(math.rad(v1292));end,v497);end end if v23.OpenBolt then if ((v45.Value<1) and ((v23.Mode=="Auto") or (v23.Mode=="Burst"))) then v50.Value=false;OBSlideClose();BeforeShot(v496);end else v112(v496/2 ,function() if ( not v5 or not v5:IsDescendantOf(game)) then return;end local v1077=v5:FindFirstChild("Handle");if not v1077 then return;end local v1078=v1077:FindFirstChild("Slide");local v1079=v1077:FindFirstChild("Bolt");if (v45.Value>=1) then if v1078 then tweenJoint(v1078,CFrame.new(0,0,0) * CFRot(v1078.C0) ,nil,function(v1413) return math.sin(math.rad(v1413));end,v497);end if (v23.MoveBolt and v1079) then tweenJoint(v1079,CFrame.new(0,0,0) * CFRot(v1079.C0) ,nil,function(v1414) return math.sin(math.rad(v1414));end,v497);end else v50.Value=false;if v23.SlideLock then if (v23.MoveBolt and not v23.BoltLock and v1079) then tweenJoint(v1079,CFrame.new(0,0,0) * CFRot(v1079.C0) ,nil,function(v1453) return math.sin(math.rad(v1453));end,v497);end v70.Value=true;else if v1078 then tweenJoint(v1078,CFrame.new(0,0,0) * CFRot(v1078.C0) ,nil,function(v1454) return math.sin(math.rad(v1454));end,v497);end if (v23.MoveBolt and v1079) then tweenJoint(v1079,CFrame.new(0,0,0) * CFRot(v1079.C0) ,nil,function(v1455) return math.sin(math.rad(v1455));end,v497);end end local v1294=v1077:FindFirstChild("Click");if (v1294 and v1294:IsA("Sound")) then v1294:Play();end end end);end end function PunchCalc(v500,v501,v502) if not v501 then return PunchCalc(v500,v502);elseif ((v501=="Up") or (v501=="Left") or (v501=="ACW")) then return v500;elseif ((v501=="Side") or (v501=="Both")) then return RAND2(0,v500 * 2 );elseif ((v501=="Down") or (v501=="Right") or (v501=="CW")) then return -v500;else return PunchCalc(v500,v502);end end function RecoilCalc(v503,v504,v505) if not v504 then return RecoilCalc(v503,v505);elseif ((v504=="Up") or (v504=="Left")) then return v503;elseif ((v504=="Side") or (v504=="Both")) then return RAND2(0,v503 * 2 );elseif ((v504=="Down") or (v504=="Right")) then return -v503;else return RecoilCalc(v503,v505);end end Lighting=game:GetService("Lighting");_cachedDOF=Lighting:FindFirstChild("GunRecoilDOF");_dofTween=nil;_cameraRecoverToken={id=0};function recoil() coroutine.wrap(function() if not v33 then return;end local v698,v699,v700,v701,v702;local v703=RANDF(v23.VRecoil[1],v23.VRecoil[2])/1000 ;local v704=RANDF(v23.HRecoil[1],v23.HRecoil[2])/1000 ;v698=RecoilCalc(v703,v23.VRecoilDir,"Up");v699=RecoilCalc(v704,v23.HRecoilDir,"Side");local v705=math.random( -1,1);local v706=math.random( -1,1);v700=math.abs(v40) * v12.GunRecoilMultiple * v12.GunVPMultiple ;v701=math.abs(v41) * v705 * v12.GunRecoilMultiple * v12.GunHPMultiple ;v702=math.abs(v42) * v706 * v12.GunRecoilMultiple * v12.GunDPMultiple ;local v707=v23.wobbleAmplitude or 0 ;local v708=CFrame.new(math.sin(v123 * (v23.wobbleSin1 or 1) ) * v707 ,math.cos(v123 * (v23.wobbleCos or 1) ) * v707 ,math.sin(v123 * (v23.wobbleSin or 1) ) * v707 );local v709=0.3;local v710=0.05;local v711=CFrame.Angles(math.sin(v123 * v710 ) * v709 ,math.sin(v123 * v710 * 1 ) * v709 ,math.sin(v123 * v710 * 0.6 ) * v709 );local v712=v708 * v711 ;local v713=v23.wobbleAmplitude or 0 ;local v714=CFrame.new((math.sin(v123 * (v23.wobbleSin1 or 1) ) * v713)/2.5 ,(math.cos(v123 * (v23.wobbleCos or 1) ) * v713)/2.5 ,(math.sin(v123 * (v23.wobbleSin or 1) ) * v713)/2.5 );local v715=0.2;local v716=0.0001;local v717=CFrame.Angles(math.sin(v123 * v716 ) * v715 ,math.sin(v123 * v716 * 1 ) * v715 ,math.sin(v123 * v716 * 0.6 ) * v715 );local v718=v714 * v717 ;if not _cachedDOF then _cachedDOF=Instance.new("DepthOfFieldEffect");_cachedDOF.Name="GunRecoilDOF";_cachedDOF.Parent=Lighting;_cachedDOF.FarIntensity=0;_cachedDOF.NearIntensity=0.1;_cachedDOF.FocusDistance=20;_cachedDOF.InFocusRadius=0;end _cachedDOF.FarIntensity=0;_cachedDOF.NearIntensity=0.2;_cachedDOF.InFocusRadius=10;if _dofTween then pcall(function() _dofTween:Cancel();end);_dofTween=nil;end local v722=TweenInfo.new(0.1,Enum.EasingStyle.Linear);_dofTween=v25:Create(_cachedDOF,v722,{FarIntensity=0,NearIntensity=0.1,InFocusRadius=20});_dofTween:Play();if Bipod then v698=v698/5 ;v699=v699/5 ;v700=v700 * 0.75 ;v701=v701/4 ;RecoilPunch=RecoilPunch/3 ;v14=v20.AimRecoil(v14,RecoilPunch,v43,v700,v701,v702,AimRecoilReduction) * v718 ;else v14=v20.AimRecoil(v14,RecoilPunch,v43,v700,v701,v702,AimRecoilReduction) * v712 ;end if v12.LegacyRecoil then v31.CFrame=v31.CFrame * CFrame.Angles(v698,v699,0) ;_cameraRecoverToken.id=_cameraRecoverToken.id + 1 ;local v1088=_cameraRecoverToken.id;local v1089=math.max(1,math.floor(30 * (v23.AimRecover or 1) ));coroutine.wrap(function() for v1295=1,v1089 do if (v1088~=_cameraRecoverToken.id) then break;end if not v33 then break;end local v1296= -v698/30 ;local v1297= -v699/30 ;v31.CFrame=CFrame.new(v31.CFrame.Position) * CFrame.Angles(v1296,v1297,0) * (v31.CFrame-v31.CFrame.p) ;v26.Heartbeat:Wait();end end)();else v151.t=v14.Position;v156.t=v14.LookVector;v159.t=v14.UpVector;v146.t=v146.t + v109(v698,v699,0) ;v146.p=v146.p + (v109(v698,v699,0) * 0.5) ;local v1098=v12.AimRecoverDuration or v23.AimRecoverDuration or 0.5 ;local v1099=Vector3.new(v104(((v700 * v43)/(v23.AimRecoilReduction or 1))/(v23.VRecoilBounce or 1) ),v104(((v701 * v43)/(v23.AimRecoilReduction or 1))/(v23.HRecoilBounce or 1) ),v104(((v702 * v43)/(v23.AimRecoilReduction or 1))/(v23.DRecoilBounce or 1) ));v138.t=v138.t + v1099 ;delay(0.1 * ((Aiming and (1/(v23.AimRecoilReduction or 1))) or 1) ,function() v138.t=v138.t-v1099 ;end);_cameraRecoverToken.id=_cameraRecoverToken.id + 1 ;local v1102=_cameraRecoverToken.id;coroutine.wrap(function() local v1179=0;while v1179<v1098 do if (v1102~=_cameraRecoverToken.id) then break;end if not v33 then break;end local v1299=v26.Heartbeat:Wait();v1179=v1179 + v1299 ;local v1300=v1299/math.max(0.0001,v1098) ;v146.t=v146.t-(v109(v698,v699,0) * (v23.AimRecover or 1) * v1300) ;end end)();end end)();local v506=v27:WaitForChild("S" .. v4.Name ):WaitForChild("Grip");local v507=v506:FindFirstChild("Counter");if not v507 then v507=Instance.new("IntValue");v507.Name="Counter";v507.Parent=v506;end v507.Value=v507.Value + 1 ;local v509=v23.MuzzleFXDuration or v12.MuzzleFXDelay ;local v510=FindSilencer(v5);if (v510 and Silencer.Value) then local v853=v5.SmokePart:FindFirstChild("Silencer");if v853 then MuzzleFX(v853,true,true,v509);else MuzzleFX(v5.SmokePart,false,false,v509);end else MuzzleFX(v5.SmokePart,true,true,v509);end MuzzleFX(v5.Chamber,true,true,v509);v112(v509,function() if ( not v5 or not v5:IsDescendantOf(game)) then return;end if not v5:FindFirstChild("SmokePart") then return;end if not v5:FindFirstChild("Chamber") then return;end v507.Value=v507.Value-1 ;if (v507.Value==0) then local v1103=v5:FindFirstChild("SmokePart");local v1104=v5:FindFirstChild("Chamber");if v1103 then StopMuzzleFX(v1103);if (v510 and Silencer.Value) then local v1398=v1103:FindFirstChild("Silencer");if v1398 then StopMuzzleFX(v1398);end end end if v1104 then StopMuzzleFX(v1104);end end end);if Silencer.Value then FireSound(v506:WaitForChild("Supressor"),v506.Position);else for v1105,v1106 in pairs(v506:GetChildren()) do if (string.sub(v1106.Name,1,4)=="Echo") then FireSound(v1106,v506.Position);end end local v854={};for v1107,v1108 in ipairs(v506:GetChildren()) do if (string.sub(v1108.Name,1,4)=="Fire") then table.insert(v854,v1108);end end if ( #v854>0) then local v1180=v854[math.random(1, #v854)];FireSound(v1180,v506.Position);end local v855={};for v1109,v1110 in ipairs(v506:GetChildren()) do if (string.sub(v1110.Name,1,4)=="Tail") then table.insert(v855,v1110);end end if ( #v855>0) then local v1181=v855[math.random(1, #v855)];FireSound(v1181,v506.Position);end end end local v225=v168:WaitForChild("Neck",true);local v226=v225.C0.Y;local v227=v225.C0.Y;local v228=math.asin;local v229=0.15;oldtick=tick();xTilt=0;yTilt=0;lastPitch=0;lastYaw=0;local v230=0;local v231=nil;v27.ChildAdded:connect(function(v511) if (v511:IsA("Tool") and v511:FindFirstChild("ACS_Modulo") and v511.ACS_Modulo:FindFirstChild("ACS_Setup") and (v166.Health>0) and not v32 and (require(v511.ACS_Modulo.ACS_Setup).Type=="Gun")) then local v856=true;local v857=v27:WaitForChild("Humanoid");local v858=v857.Sit;if ((v27:WaitForChild("Humanoid").Sit and v27.Humanoid.SeatPart:IsA("VehicleSeat")) or v34) then v856=false;end if v856 then v231=v511;if not v33 then v30.MouseIconEnabled=false;v1.CameraMode=Enum.CameraMode.LockFirstPerson;Setup(v511);LoadClientMods();v177={v27,WorkspaceServerFolder,v31,WorkspaceClientFolder};v178={v27,WorkspaceServerFolder,v31,WorkspaceClientFolder};v59=v209:WaitForChild("GunHUD");v59.Visible=true;v60=true;EquipAnim();v59.Ammo.Visible=true;if (v23.ZoomAnim and (v66==2)) then ZoomAnim();end Sprint();elseif v33 then Unset();Setup(v231);LoadClientMods();end end end end);v28.Seated:Connect(function(v512,v513) if (v512 and (v513:IsA("VehicleSeat"))) then Unset();v166:UnequipTools();v1.CameraMaxZoomDistance=v12.VehicleMaxZoom;else v1.CameraMaxZoomDistance=game.StarterPlayer.CameraMaxZoomDistance;end end);v1.Backpack.ChildRemoved:connect(function(v514) Evt.Holster:FireServer(v514);end);v27.ChildRemoved:connect(function(v515) if (v515==v4) then if v33 then if v2 then v2:Destroy();end v231=nil;Unset();end end end);function Tween(v516,v517,v518,v519,v520,v521) local v522=game:GetService("TweenService");local v523=TweenInfo.new(v517 or 1 ,v519 or Enum.EasingStyle.Quint ,v520 or Enum.EasingDirection.Out ,0,false,v521 or 0 );v522:Create(v516,v523,v518):Play();end function recaimoff(v524,v525,v526,v527) local v528=math.abs(v524);local v529=v528 * v526 ;local v530=math.clamp(math.max(v529,v525) * v527 ,0,v528);if (v524>0) then return -v530;else return v530;end end function RecoverAimOffset(v531,v532,v533) local v534=recaimoff(aimoffsetthing.X,v531,v532,v533);local v535=recaimoff(aimoffsetthing.Y,v531,v532,v533);aimoffsetthing=aimoffsetthing + Vector2.new(v534,v535) ;end function DoOverHeat(v536) local v537=FindSilencer(v5);local v538=v5.SmokePart;if (v537 and (v537.Transparency==0) and v5.SmokePart:FindFirstChild("Silencer")) then v538=v5.SmokePart:FindFirstChild("Silencer");end for v724,v725 in pairs(v538:GetChildren()) do if ((string.sub(v725.Name,1,8)=="OverHeat") and v725:IsA("ParticleEmitter")) then v725.Enabled=v536;end end end local v232=game:GetService("RunService");local function v233(v539) return math.asin(math.clamp(v539, -1,1));end v232.Heartbeat:Connect(function() v79= not v79;if ( not v79 or not v27 or not v27:FindFirstChild("Humanoid") or (v27.Humanoid.Health<=0) or not v225 or v27.Humanoid.PlatformStand or not v31 or not v169) then return;end local v540,v541=pcall(function() local v726=v169.CFrame:ToObjectSpace(v31.CFrame).lookVector;local v727=v115(0,v226,0) * v116( -v233(v27.Torso.CFrame.lookVector.Y), -v233(v726.X/1.15 ),0) * v116(math.rad( -90),0,math.rad(180)) * v116(v233( -v726.Y),0,0) ;if (v103 and v31 and v199) then local v1112,v1113,v1114=(v31.CFrame:Inverse() * v199.CFrame):ToEulerAnglesXYZ();Evt.HeadRot:FireServer(v727,v163 * CFrame.Angles(v1112,v1113,v1114) );else Evt.HeadRot:FireServer(v727);end end);end);v166.Died:Connect(function() for v728,v729 in ipairs(workspace.Terrain:GetChildren()) do if (v729.Name=="AttachmentHit") then v729:Destroy();end end end);for v542,v543 in pairs(v223:GetChildren()) do if v543:IsA("Animation") then animations[v543.Name]=v166:LoadAnimation(v543);end end lastState="";local function v234(v544,v545) if animations[v544] then if (currentAnim~=animations[v544]) then if currentAnim then currentAnim:Stop(v545 or 0.1 );end currentAnim=animations[v544];currentAnim.Looped=true;currentAnim.Priority=Enum.AnimationPriority.Movement;currentAnim:Play(v545 or 0.1 );end end end moving=false;v26.RenderStepped:connect(function(v546) local v547=v30:GetMouseDelta();local v548=10;local v549=math.clamp(v547.X, -v548,v548);local v550=math.clamp(v547.Y, -v548,v548);local v551=v12.DeadzoneSens;local v552=math.rad(v12.DeadzoneSize);FreeAimOffset=FreeAimOffset or Vector2.zero ;FreeAimOffset+=(Vector2.new(v549,v550) * v551) if (FreeAimOffset.Magnitude>v552) then FreeAimOffset=FreeAimOffset.Unit * v552 ;local v864=v12.DeadzoneBounceBack;FreeAimOffset=FreeAimOffset * (1 -v864) ;end local v553=Vector2.new(v549,v550) * v551 ;local v554=FreeAimOffset + v553 ;local v555=Vector2.zero;if (v554.Magnitude>v552) then v555=v554-(v554.Unit * v552) ;end local v556=Vector3.new(FreeAimOffset.X + v555.X ,FreeAimOffset.Y + v555.Y ,0);v130:accelerate(v556-v130.p );local v557=v130.p;local v558=v12.WeaponRoll;local v559= -v549 * 0.08 * v558 ;local v560=math.rad(15);local v561=math.rad(15);local v562=math.rad(5);local v563=math.clamp(v557.X, -v560,v560);local v564=math.clamp(v557.Y, -v561,v561);local v565=math.clamp(v559, -v562,v562);local v566=CFrame.Angles(v564,v563,v565);if (v166.MoveDirection.Magnitude>0.84) then moving=true;elseif (v166.MoveDirection.Magnitude<=0.8) then moving=false;end if (v37.Value==1) then if ((moving==false) and (lastState~="CrouchIdle")) then v234("Crouch_Idle",v12.StanceTween);v25:Create(v166,TweenInfo.new(v12.StanceTween),{HipHeight= -1}):Play();lastState="CrouchIdle";elseif ((moving==true) and (lastState~="CrouchMove")) then v25:Create(v166,TweenInfo.new(v12.StanceTween),{HipHeight= -1}):Play();v234("Crouch_Move",v12.StanceTween);lastState="CrouchMove";end elseif (v37.Value==2) then if ((moving==false) and (lastState~="ProneIdle")) then v234("Prone_Idle",v12.StanceTween);v25:Create(v166,TweenInfo.new(v12.StanceTween),{HipHeight= -2.12}):Play();lastState="ProneIdle";elseif ((moving==true) and (lastState~="ProneMove")) then v25:Create(v166,TweenInfo.new(v12.StanceTween),{HipHeight= -2.12}):Play();v234("Prone_Move",v12.StanceTween);lastState="ProneMove";end else if currentAnim then currentAnim:Stop(v12.StanceTween);v25:Create(v166,TweenInfo.new(v12.StanceTween),{HipHeight=0}):Play();currentAnim=nil;end lastState="";end if (v33 and (v23.Mode=="Explosive")) then GLAim=true;else GLAim=false;end local function v567(v730) v25:Create(v166,TweenInfo.new(0.2,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),{WalkSpeed=v730}):Play();end local v568=script.Parent:WaitForChild("Stances");local v569=v12.HumanWeight;local v570=script.Parent.Protecao.Weight;local v571=v569/(v569 + v570.Value) ;local v572=v568.Mobility.Value * v571 ;function LoadClientMods() for v865,v866 in pairs(GunMods:GetChildren()) do if v866:IsA("LocalScript") then local v1186=v866:clone();v1186.Parent=v80;v1186.Disabled=false;end end end if not v33 then v199.CFrame=v31.CFrame * CFrame.new(0,0, -0.5) ;else local v868=tick();local v869=v868-v122 ;local v870=v869 * 60 ;v122=v868;local v871=55;local v872=1 -math.exp( -v871 * v546 ) ;v14=v14:lerp(CFrame.new(),v872);v151.t=v14.Position;v156.t=v14.LookVector;v159.t=v14.UpVector;local v879=Ray.new(v5.Handle.Position,v5.Handle.CFrame.LookVector * v23.GunSize );local v880,v881,v882=workspace:FindPartOnRayWithIgnoreList(v879,v177,false,true);local v883=Ray.new(v31.CFrame.Position,v5.Handle.Position-v31.CFrame.Position );local v884,v885=workspace:FindPartOnRayWithIgnoreList(v883,v177,false,true);local v886=v23.CrouchSway;local v887=v23.ProneSway;local v888=v23.SwayBase + ((1 -(v27.Saude.Variaveis.Stamina.Value/v27.Saude.Variaveis.Stamina.MaxValue)) * MaxSway) ;local v889=v23.CrouchSway + ((1 -(v27.Saude.Variaveis.Stamina.Value/v27.Saude.Variaveis.Stamina.MaxValue)) * MaxSway) ;local v890=v23.ProneSway + ((1 -(v27.Saude.Variaveis.Stamina.Value/v27.Saude.Variaveis.Stamina.MaxValue)) * MaxSway) ;if not Aiming then if (v884 and ((v5.Handle.Position-v885).magnitude<v23.GunSize) and (stance==0)) then LerpCloneC1(CFrame.new(0,0,(((v5.Handle.Position-v885).magnitude/v23.GunSize) -1) * -20 ),0.2,v870);elseif (v880 and ((v5.Handle.Position-v881).magnitude<v23.GunSize) and (stance==0)) then local v1415=CFrame.new(0,0,(((v5.Handle.Position-v881).magnitude/v23.GunSize) -1) * -2 );local v1416=(((v5.Handle.Position-v881).magnitude/v23.GunSize) -1) * 6 ;local v1417=v1416;local v1418=0;local v1419=math.deg(math.acos(v31.CFrame.UpVector:Dot(v882)));if (v1419>120) then v1418=v1416;elseif (v1419<60) then v1418= -v1416;end local v1420=math.deg(math.acos(v31.CFrame.RightVector:Dot(v882)));if ((v1418~=0) and (v1420>60) and (v1420<120)) then v1417=0;elseif (v1420>90) then v1417= -v1417;end v1417=math.clamp(v1417, -5,5);v1418=math.clamp(v1418, -5.6,5);LerpCloneC1(v1415 * CFrame.Angles(0,v1417,0) * CFrame.Angles(v1418,0,0) ,0.05,v870);else LerpCloneC1(CFrame.new(),0.15,v870);end elseif Aiming then RecoverAimOffset(0.04,0.08,v870);v25:Create(v164,TweenInfo.new(AimTime.Value * 0.5 ,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut),{CFrame=CFrame.new(v12.AimPartOffset,0,0)}):Play();if ( not v12.AimWhenObstructed and ((v884 and ((v5.Handle.Position-v885).magnitude<v23.GunSize)) or (v880 and ((v5.Handle.Position-v881).magnitude<v23.GunSize)))) then AimObstructed();end end local v891=v31.CoordinateFrame.lookVector;local v892=v891.X;local v893=v891.Y;local v894=v891.Z;local v895,v896=v117(v893), -math.atan(v892/v894 );local v897=lastPitch-v895 ;local v898=lastYaw-v896 ;v897=v897 * (((v118(v897)<1) and 1) or 0) ;v898=v898 * (((v118(v898)<1) and 1) or 0) ;yTilt=(yTilt * 0.6) + v897 ;xTilt=(xTilt * 0.6) + v898 ;lastPitch=v895;lastYaw=v896;v125.t=v109(xTilt,yTilt,v230);local v900=v125.p;local v901=8;if Aiming then v901=5;end local v902=v900.z;local v903=v900.X * v901 ;local v904=v900.Y * v901 ;local v905=v28.WalkSpeed/4 ;local v906=v28.WalkSpeed/20 ;local v907=v905 * v18 ;local v908=(v105(v123 * 2 ) + (0.25 * v105(v123))) * v907 ;local v909=(v106(v123 * 4 ) + (0.25 * v106(v123 * 2 ))) * v907 ;local v910= -v106(v123 * 2 ) * v907 ;v141.t=Vector3.new(v908,v909,v910);local v912=v141.p;local v913=v912.Z;local v914=v912.X;local v915=v912.Y;if v103 then if Aiming then v910=0;end if Bipod then v18=Lerp(v18,0,math.min(1,v19.rl * v870 ));elseif v113 then v124=v905;if a then local v1456=1;v130:accelerate(Vector3.new(5,0,0) * v1456 * v546 );local v1457=v130.p;local v1458=v1457.Z;local v1459=CFrame.Angles(0,v563,0);v230=Lerp(0,1 * v906 ,math.min(1,0.5 * v870 * v546 ));elseif d then local v1487=1;v130:accelerate(Vector3.new( -5,0,0) * v1487 * v546 );local v1488=v130.p;local v1489=v1488.Z;local v1490=CFrame.Angles(0,v563,0);v230=Lerp(0,0.2 * v906 ,math.min(100,0.5 * v870 ));else v230=Lerp(0,0,math.min(1,0.5 * v870 ));end v18=Lerp(v18,v19.w,math.min(1,v19.wl * v870 ));else v124=v905/3 ;if (v18>v19.wb) then v18=Lerp(v18,v19.s,math.min(1,v19.rl * v870 ));else v18=Lerp(v18,v19.s,math.min(1,v19.sl * v870 ));end end v123=v123 + (v869 * v124) ;local v1189=v12.BipodSwayMultiplier;local v1190=v116(v904 * v104(5) * v1189 , -v903 * v104(1.5) * v1189 , -v903 * v104(3) * v1189 );v162=v162:lerp(v115(v914/220 , -v915/180 ,0) * v116( -v915/270 , -v914/220 ,v913/100 ) * v116(0,0,v902/20 ) ,1);v103.C0=v103.C0:lerp(v162 * v1190 ,math.min(1,0.7 * v870 ));end if (v69 and v71) then delay(5,function() if v71 then v69=false;end end);end local v916=time();if (((v916-v58)>(v48 * 2)) and v71 and (v44>v23.MinSpread)) then v44=math.max(v23.MinSpread,v44-AIDecrease );end if (((v916-v58)>(v48 * 1.5)) and v71) then v43=math.max(v23.MinRecoilPower,v43-RPStepAmount );end DoOverHeat(v69);local v917;if v12.LegacyRecoil then v917=v14;else v917=CFrame.lookAt(v151.p,v156.p,v159.p);end local v918=v138.p;if Aiming then local v1192=math.min(10,0.04 * v870 );local v1193;if (v1192<5) then v1193=v1192 * 2 ;else local v1337=(v1192-0.5) * 2 ;v1193=0.5 + ((1 -((1 -v1337)^5)) * 0.5) ;end v163=v163:Lerp(v103.C0:Inverse() * v917 ,v546 * 5 );if ( not NVG or (v5.AimPart:FindFirstChild("NVAim")==nil)) then if ((v66==1) and (v5:FindFirstChild("AimPart2")~=nil)) then v103.C1=v103.C1:Lerp(v103.C1 * v103.C0:inverse() * v917 * v566:Inverse() * CFrame.Angles(v918.X,v918.Y,v918.Z) * v5.AimPart.CFrame:toObjectSpace(v199.CFrame) ,v546 * 5 );elseif ((v66==2) and (v5:FindFirstChild("AimPart2")~=nil)) then v103.C1=v103.C1:Lerp(v103.C1 * v103.C0:inverse() * v917 * v566:Inverse() * CFrame.Angles(v918.X,v918.Y,v918.Z) * v5.AimPart2.CFrame:toObjectSpace(v199.CFrame) ,v546 * 5 );elseif (GLAim==true) then v103.C1=v103.C1:Lerp(v103.C1 * v103.C0:inverse() * v917 * v566:Inverse() * CFrame.Angles(v918.X,v918.Y,v918.Z) * v5.GLAim.CFrame:toObjectSpace(v199.CFrame) ,v546 * 5 );elseif (GLAim==false) then v103.C1=v103.C1:Lerp(v103.C1 * v103.C0:inverse() * v917 * v566:Inverse() * CFrame.Angles(v918.X,v918.Y,v918.Z) * v5.AimPart.CFrame:toObjectSpace(v199.CFrame) ,v546 * 5 );else v103.C1=v103.C1:Lerp(v103.C1 * v103.C0:inverse() * v917 * v566:Inverse() * CFrame.Angles(v918.X,v918.Y,v918.Z) * v5.AimPart.CFrame:toObjectSpace(v199.CFrame) ,v546 * 5 );end elseif not Bipod then v103.C1=v103.C1:Lerp(v103.C1 * v103.C0:inverse() * v917 * v566:Inverse() * CFrame.Angles(v918.X,v918.Y,v918.Z) * (v5.AimPart.CFrame * v5.AimPart.NVAim.CFrame):toObjectSpace(v199.CFrame) ,v546 * 5 );else Aiming=false;stance=0;end else LerpCloneC1(v566:Inverse() * CFrame.Angles(v918.X,v918.Y,v918.Z) * v917 ,0.15,v870);LerpCloneC1(v103.C0:Inverse(), -12,v546 * 1 );end local v919=1 -(v27.Saude.Variaveis.Stamina.Value/v27.Saude.Variaveis.Stamina.MaxValue) ;local v920=v31.CFrame * CFrame.new(0,0, -0.5) * CFrame.Angles(math.rad(v888 * math.sin(tick() * 2.5 ) ),math.rad(v888 * math.sin(tick() * 1.25 ) ),0) ;if (v5:FindFirstChild("BipodPoint")~=nil) then debug.profilebegin("Bipod Process");local v1194=Ray.new(v5.BipodPoint.Position,v5.BipodPoint.CFrame.UpVector * -1.75 );local v1195,v1196,v1197=workspace:FindPartOnRayWithIgnoreList(v1194,v177,false,true);if (v1195 and ((stance==0) or (stance==2))) then v59.Bipod.ImageColor3=Color3.fromRGB(255,255,0);BipodEnabled=true;if (BipodEnabled and Bipod) then v59.Bipod.ImageColor3=Color3.fromRGB(255,255,255);v888=0;v199.CFrame=v920;if ((stance==0) and not Aiming) then LerpCloneC1(v103.C0:inverse() * v917 * CFrame.new(0,((v5.BipodPoint.Position-v1196).magnitude-1) * -1.5 ,0) ,0.15,v870);end else v59.Bipod.ImageColor3=Color3.fromRGB(255,255,0);v888=v23.SwayBase + (v919 * MaxSway) ;v199.CFrame=v920;end else v59.Bipod.ImageColor3=Color3.fromRGB(255,0,0);Bipod=false;BipodEnabled=false;v888=v23.SwayBase + (v919 * MaxSway) ;v199.CFrame=v920;end debug.profileend();else v888=v23.SwayBase + (v919 * MaxSway) ;v199.CFrame=v920;end if (v37.Value==1) then local function v1199() task.spawn(function() v130:accelerate(Vector3.new(0, -0.1,0) * v546 * 150 );task.wait(0.3);v130:accelerate(Vector3.new(0,0.1,0) * v546 * 150 );end);end v1199();end if not Aiming then local v1200;local v1201;if (v169.Velocity.Magnitude>0) then local v1341=v31.CFrame:ToObjectSpace(CFrame.new(workspace.CurrentCamera.CFrame.p + v169.Velocity ));v1200=((v1341.p * Vector3.new(1,1,0))/16) * 0.25 * (v23.IdleWalkSwayMult or 0) ;end v892=v165.Y * -0.5 ;v1201=v165.X * 0.25 ;v894=v165.Z;v31.CFrame=v31.CFrame * CFrame.new():Lerp(v164.CFrame-v164.CFrame.p ,2 * v870 ) ;v199.CFrame=v31.CFrame * CFrame.new((aimoffsetthing.X * 0.025) + v1201 ,(aimoffsetthing.Y * -0.025) + v892 ,0) * CFrame.new(0,0, -0.5) * CFrame.Angles(math.rad(v888 * math.sin(tick() * 2.5 ) ),math.rad(v888 * math.sin(tick() * 1.25 ) ),0) * CFrame.Angles(math.rad(aimoffsetthing.Y),math.rad(aimoffsetthing.X),0) * CFrame.fromEulerAnglesYXZ(v892,v1201,0) ;elseif Aiming then if ((aimoffsetthing.Magnitude>0) and (v37.Value==0)) then v199.CFrame=v31.CFrame * CFrame.new(aimoffsetthing.X * 0.025 ,aimoffsetthing.Y * -0.025 ,0) * CFrame.new(0,0, -0.5) * CFrame.Angles(math.rad(v888 * math.sin(tick() * 2.5 ) ),math.rad(v888 * math.sin(tick() * 1.25 ) ),0) * CFrame.Angles(math.rad(aimoffsetthing.Y),math.rad(aimoffsetthing.X),0) ;elseif (v37.Value==1) then v199.CFrame=v31.CFrame * CFrame.new(aimoffsetthing.X * 0.025 ,aimoffsetthing.Y * -0.025 ,0) * CFrame.new(0,0, -0.5) * CFrame.Angles(math.rad(v889 * math.sin(tick() * 2.5 ) ),math.rad(v889 * math.sin(tick() * 1.25 ) ),0) * CFrame.Angles(math.rad(aimoffsetthing.Y),math.rad(aimoffsetthing.X),0) ;elseif (v37.Value==2) then v199.CFrame=v31.CFrame * CFrame.new(aimoffsetthing.X * 0.025 ,aimoffsetthing.Y * -0.025 ,0) * CFrame.new(0,0, -0.5) * CFrame.Angles(math.rad(v890 * math.sin(tick() * 2.5 ) ),math.rad(v890 * math.sin(tick() * 1.25 ) ),0) * CFrame.Angles(math.rad(aimoffsetthing.Y),math.rad(aimoffsetthing.X),0) ;end end if (v33 and LaserEnabled) then debug.profilebegin("Laser Cast");if NVG then v85.Transparency=1;v84.Enabled=true;else if not v12.RealisticLaser then v84.Enabled=true;else v84.Enabled=false;end if IRmode then v85.Transparency=1;else v85.Transparency=0;end end local v1205=Ray.new(v5.LaserPoint.Position,v100.CFrame.lookVector * 999 );local v1206=true;local v1207,v1208,v1209;while v1206 do v1207,v1208,v1209=workspace:FindPartOnRayWithIgnoreList(v1205,v178,false,v12.LaserIgnoreWater);if ((v1207.Transparency>=1) or (v1207.Name=="Ignorable")) then v110(v178,v1207);else v1206=false;end end v89.CFrame=CFrame.new(0,0, -LaserDist);v85.CFrame=CFrame.new(v1208,v1208 + v1209 );if v1207 then LaserDist=(v5.LaserPoint.Position-v1208).magnitude;else LaserDist=999;end debug.profileend();end if not v12.LegacyRecoil then v31.CFrame=v31.CFrame * CFrame.Angles(v146.p.X,v146.p.Y,v146.p.Z) ;v146.t=v146.t-v146.p ;v146.p=v109();end end end);function EjectShells() local v573=v5;if not v573:FindFirstChild("Shell") then return;elseif not v5:FindFirstChild("Chamber") then return;end local v574=v5.Shell:clone();local v575=v574:FindFirstChildOfClass("Motor6D");if v575 then v575:Destroy();end v574.Transparency=0;if v5.Chamber:FindFirstChild("ShellEjectVelocity") then v574.Velocity=v5.Chamber.CFrame.lookVector * v5.Chamber.ShellEjectVelocity.Value ;else v574.Velocity=v5.Chamber.CFrame.lookVector * 80 ;end local function v577(v731,v732) return Vector3.new((math.random() * (v732-v731)) + v731 ,(math.random() * (v732-v731)) + v731 ,(math.random() * (v732-v731)) + v731 );end local v578=v577( -10,10);if v5.Chamber:FindFirstChild("RotVelocity") then v574.RotVelocity=v5.Chamber.RotVelocity.Value + v578 ;else v574.RotVelocity=Vector3.new( -10,40,30) + v578 ;end if v5.Chamber:FindFirstChild("ShellsCannotCollide") then v574.CanCollide=false;else v574.CanCollide=true;end if v5.Chamber:FindFirstChild("ShellLifetime") then Debris:AddItem(v574,v5.Chamber.ShellLifetime.Value);end if v5.Chamber:FindFirstChild("ShellEjectOrientation") then local v927=v5.Chamber.ShellEjectOrientation.Value;v574.CFrame=v5.Chamber.CFrame * CFrame.fromOrientation(math.rad(v927.X),math.rad(v927.Y),math.rad(v927.Z)) ;else v574.CFrame=v5.Chamber.CFrame;end v574.Parent=WorkspaceClientFolder;end Evt.FireSound.OnClientEvent:Connect(function(v580,v581,v582,v583,v584) if ((v580~=v1) and (v166.Health>0)) then local v931=(v583-v1.Character.Head.Position).Magnitude;if (v931>=v582.RollOffMaxDistance) then return;end v111(v931/v12.SpeedOfSound );if (v581=="Play") then v582:Play();elseif (v581=="Pause") then v582:Stop();v582.TimePosition=0;else local v1346=v582.Parent;if not v1346 then return;end if (v581=="New") then local v1432=v582:Clone();v1432.Name="__" .. v582.Name .. "__" .. v584 ;v1432.Parent=v1346;v1432:Play();v1432.Ended:Wait();v1432:Destroy();else local v1435=v1346:FindFirstChild("__" .. v582.Name .. "__" .. v584 );if not v1435 then return;end if (v581=="Volume") then v1435.Volume=v1435.Volume * 0.7 ;elseif (v581=="Stop") then v1435:Destroy();end end end end end);function FireSound(v585,v586) Evt.FireSound:FireServer("Play",v585,v586);local v587=v5.Handle:FindFirstChild(v585.Name);if not v587 then v587=v585;end if v23.AutoLoop then local v932=v585.Parent:FindFirstChild("Tail");if v932 then v932:Play();Evt.FireSound:FireServer("Play",v932,v586);end if (v23.Mode=="Semi") then local v1215=v585.Parent:FindFirstChild("Fire");if v1215 then v1215.Volume=10;end end if ((v23.Mode=="Auto") or (v23.Mode=="Burst")) then local v1216=v585.Parent:FindFirstChild("Fire");if v1216 then v1216.Volume=0;end local v1217=v585.Parent:FindFirstChild("Loop" .. v585.Name );if not v1217 then return;end if not v215.looping then v1217:Play();Evt.FireSound:FireServer("Play",v1217,v586);v215.looping=true;end else v587:Play();Evt.FireSound:FireServer("Play",v585,v586);end elseif v12.LegacyFireSound then v587:Play();Evt.FireSound:FireServer("Play",v585,v586);else local v1218=v214[v585.Name];if not v1218 then v1218={nil,nil,1};v214[v585.Name]=v1218;else v1218[1]=v1218[2];v1218[2]=v1218[3];v1218[3]=v1218[3] + 1 ;end local v1219=v587:Clone();v1219.Name="__" .. v585.Name .. "__" .. v1218[3] ;v1219.Parent=GunGrip(v27);v1219:Play();coroutine.wrap(function() v1219.Ended:Wait();v1219:Destroy();end)();Evt.FireSound:FireServer("New",v585,v586,v1218[3]);if v1218[1] then local v1354=GunGrip(v27):FindFirstChild("__" .. v585.Name .. "__" .. v1218[1] );if v1354 then v1354:Destroy();Evt.FireSound:FireServer("Stop",v585,v586,v1218[1]);end end if v1218[2] then local v1355=GunGrip(v27):FindFirstChild("__" .. v585.Name .. "__" .. v1218[2] );if v1355 then v1355.Volume=v1355.Volume * 0.7 ;Evt.FireSound:FireServer("Volume",v585,v586,v1218[2]);end end end end function AutoLoopCheck() if (v23.AutoLoop and not Shootable()) then StopLoops();end end Evt.SVFlash.OnClientEvent:Connect(function(v588,v589,v590,v591,v592,v593,v594) if (v588~=v1) then local v933=v588.Character["S" .. v590.Name ];local v934=Instance.new("SpotLight");local v935=Instance.new("BillboardGui");if (v589==true) then local v1222=v933.Grip:FindFirstChild("Flash");local v1223=v933:FindFirstChild("FlashPoint");if v1222 then v934.Parent=v1222;v934.Angle=v591;v934.Brightness=v592;v934.Range=v594;v934.Color=v593;v935.Parent=v1222;v935.Adornee=v1222;v935.Size=UDim2.new(10,0,10,0);local v1364=Instance.new("ImageLabel",v935);v1364.BackgroundTransparency=1;v1364.Size=UDim2.new(1,20,1,20);v1364.AnchorPoint=Vector2.new(0.5,0.5);v1364.Position=UDim2.new(0.5,0,0.5,0);v1364.Image="http://www.roblox.com/asset/?id=1847258023";v1364.ImageColor3=v593;v1364.ImageTransparency=0.25;v1364.Rotation=math.random( -45,45);end else local v1224=v933:FindFirstChild("FlashPoint");local v1225=v933.Grip:FindFirstChild("Flash");if ( not v1225 and v1224) then v1225=v1224:FindFirstChild("Flash");end if (v1225:FindFirstChild("SpotLight")~=nil) then v1225:FindFirstChild("SpotLight"):Destroy();end if (v1225:FindFirstChild("BillboardGui")~=nil) then v1225:FindFirstChild("BillboardGui"):Destroy();end end end end);function MakeExplosion(v595,v596,v597,v598,v599) local v600=Instance.new("Explosion");v600.BlastPressure=v598;v600.BlastRadius=v597;v600.DestroyJointRadiusPercent=v599;v600.Position=v595.Position;v600.Parent=v595;v600.Visible=false;v600.Hit:connect(function(v733,v734) local v735,v736=CheckForHumanoid(v733);local v737;if (type(v596)=="number") then v737=v596;elseif (type(v596)=="table") then v737=math.random(v596[1],v596[2]);end if ((v735==true) and (v736.Health>0)) then local v1115=v734/v600.BlastRadius ;v1115=1 -v1115 ;if (v1115>0) then local v1302=v180 .. "-" .. v1.UserId ;Evt.ACS_AI.Damage:FireServer(v736,v737 * v1115 ,0,0,v1302);end end end);end function Launcher() if (v23.FireModes.Explosive==true) then local v936=v27:WaitForChild("S" .. v5.Name ):WaitForChild("Grip");FireSound(v936:WaitForChild("Fire2"),v936.Position);local v937=Instance.new("Part");v937.Shape="Ball";v937.CanCollide=false;v937.Size=Vector3.new(0.1,0.1,0.1);v937.Material=Enum.Material.Metal;v937.Color=Color3.fromRGB(27,42,53);v937.Parent=WorkspaceClientFolder;v937.CFrame=v5.SmokePart2.CFrame;v937.Velocity=v5.SmokePart2.CFrame.lookVector * (1000 -196.2) ;v937.Transparency=1;local v949=Instance.new("Attachment");v949.Name="At1";v949.Position=Vector3.new( -0.15,0,0);v949.Parent=v937;local v953=Instance.new("Attachment");v953.Name="At2";v953.Position=Vector3.new(0.15,0,0);v953.Parent=v937;local v957,v958,v959,v960;local v961,v962,v963,v964;local v965=v5.SmokePart2.Position;local v966=v937.Position;local v967=false;local v968;while true do v26.Heartbeat:wait();v966=v937.Position;v957,v958,v959,v960=workspace:FindPartOnRayWithIgnoreList(Ray.new(v965,(v966-v965) * 2 ),v177,false,v12.GLIgnoreWater);v961,v962,v963,v964=workspace:FindPartOnRayWithIgnoreList(Ray.new(v965,v966-v965 ),v177,false,v12.GLIgnoreWater);if v957 then while not v968 do if (v957 and ((v957.CanCollide==false) or (v957.Name=="Ignorable") or (v957.Name=="Glass") or (v957.Parent.Name=="Top") or (v957.Parent.Name=="Helmet") or (v957.Parent.Name=="Up") or (v957.Parent.Name=="Down") or (v957.Parent.Name=="Face") or (v957.Parent.Name=="Olho") or (v957.Parent.Name=="Headset") or (v957.Parent.Name=="Numero") or (v957.Parent.Name=="Vest") or (v957.Parent.Name=="Chest") or (v957.Parent.Name=="Waist") or (v957.Parent.Name=="Back") or (v957.Parent.Name=="Belt") or (v957.Parent.Name=="Leg1") or (v957.Parent.Name=="Leg2") or (v957.Parent.Name=="Arm1") or (v957.Parent.Name=="Arm2")) and (v957.Name~="Right Arm") and (v957.Name~="Left Arm") and (v957.Name~="Right Leg") and (v957.Name~="Left Leg") and (v957.Name~="Armor") and (v957.Name~="EShield")) then v110(v177,v957);v968=true;end if v968 then v957,v958,v959,v960=workspace:FindPartOnRayWithIgnoreList(Ray.new(v965,(v966-v965) * 2 ),v177,false,v12.GLIgnoreWater);v961,v962,v963,v964=workspace:FindPartOnRayWithIgnoreList(Ray.new(v965,v966-v965 ),v177,false,v12.GLIgnoreWater);v968=false;else break;end end end if (v961 and not v968) then Evt.LauncherHit:FireServer(v962,v961,v963,v964);v937:remove();local v1303=Instance.new("Attachment");v1303.CFrame=CFrame.new(v962,v962 + v963 );v1303.Parent=workspace.Terrain;local v1307=v1303.Position;game.ReplicatedStorage.MakeLauncherExplosion:FireServer(v1307);break;end v965=v966;end end end function bspreadFunction() v44=math.min(v23.MaxSpread,v44 + AIStepAmount );v43=math.min(v23.MaxRecoilPower,v43 + RPStepAmount );if (v44>=v23.MaxSpread) then v69=true;end end function ShootFOVEffect() if v23.FOVEffect then if Aiming then if (v66==1) then tweenFoV(v23.ChangeFOV[1] + v23.FOVEffect[1] ,11);elseif (v66==2) then tweenFoV(v23.ChangeFOV[2] + v23.FOVEffect[2] ,11);end else tweenFoV(70 + v23.FOVEffect[3] ,11);end v26.RenderStepped:Wait();if Aiming then if (v66==1) then tweenFoV(v23.ChangeFOV[1],120);elseif (v66==2) then tweenFoV(v23.ChangeFOV[2],120);end else tweenFoV(70,120);end end end function Emperrar() if ((v23.CanBreak==true) and (v50.Value==true) and ((v45.Value-1)>0)) then local v969=math.random(v23.JamChance);if (v969==1) then v53.Value=true;v5.Handle:WaitForChild("Click"):Play();end end end function BeforeShot(v608) if (v23.OpenBolt and not v23.DisableSlideExtend) then local v970=v608/4 ;tweenJoint(v5.Handle:WaitForChild("Slide"),CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(0),0) ,nil,function(v1117) return math.sin(math.rad(v1117));end,v970);if (v23.MoveBolt==true) then tweenJoint(v5.Handle:WaitForChild("Bolt"),CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(0),0) ,nil,function(v1308) return math.sin(math.rad(v1308));end,v970);end v111(v608/2 );end Emperrar();end function AfterShot(v609) v216=tick();ShootFOVEffect();recoil();if (v53.Value==false) then v45.Value=v45.Value-1 ;v112(v609/2 ,function() EjectShells();end);SlideEx(v609);end bspreadFunction();if v23.OpenBolt then v111(v609/2 );else v111(v609);end end function Shootable() if ((v45.Value>0) and (v53.Value==false) and (v50.Value==true)) then return true;else return false;end end function FireShot(v610) BeforeShot(v610);if (v53.Value==false) then local v972=v27:WaitForChild("S" .. v5.Name ):WaitForChild("Grip");local v973=v972.Echo;local v974=v972.Fire;task.spawn(function() v973:Play();end);Evt.Atirar:FireServer(v610,v24,v4,v23.MuzzleFXDuration);for v1118=1,v23.Bullets do coroutine.wrap(function() v2=CreateBullet(v44);CastRay(v2);end)();end AfterShot(v610);end end function BurstShot() for v738=1,v23.BurstShot do if (v77 and Shootable()) then if (v738==v23.BurstShot) then FireShot(v48);else FireShot(v49);end end end end function OBSlideClose() if v5.Bolt:FindFirstChild("SlideClose") then v5.Bolt.SlideClose:Play();else v5.Bolt.SlideRelease:Play();end end function Shoot() if v33 then v77=true;if (v23.Mode~="Explosive") then if (v23.OpenBolt and (v45.Value<=0) and (v50.Value==true) and (v53.Value==false)) then OBSlideClose();BeforeShot(v48);v50.Value=false;return;elseif ((v70.Value==true) or (v50.Value==false) or (v53.Value==true)) then v5.Handle.Click:Play();return;end elseif (((v23.Mode=="Explosive") and (v51.Value==false)) or (v47.Value<=0)) then v5.Handle.Click:Play();return;end if (v71 and not (Reloading or v73 or v3)) then v71=false;if (v23.Mode=="Safe") then v5.Handle.Click:Play();elseif ((v23.Mode=="Semi") and Shootable()) then FireShot(v48);elseif (v23.Mode=="Auto") then if v23.BurstFirst then BurstShot();end if v23.BurstFire then while v77 and v33 and not v71 and Shootable() do BurstShot();end else while v77 and v33 and not v71 and Shootable() do FireShot(v48);end end elseif (v23.Mode=="Burst") then BurstShot();elseif ((v23.Mode=="Bolt-Action") or ((v23.Mode=="Pump-Action") and Shootable())) then Evt.Atirar:FireServer(v48,v24,v4,v23.MuzzleFXDuration);for v1511=1,v23.Bullets do coroutine.wrap(function() v2=CreateBullet(v44);CastRay(v2);end)();end recoil();if (v45.Value>=1) then v53.Value=true;end bspreadFunction();if v23.AutoChamber then if ((Aiming and v23.ChamberWhileAim) or ( not Aiming and (v23.Bandage==false))) then v77=false;v71=false;Reloading=true;ChamberAnim();Sprint();v71=true;Reloading=false;end end v111(v48);elseif ((v23.Mode=="Explosive") and (v47.Value>0) and (v51.Value==true) and not v3) then v51.Value=false;v47.Value=v47.Value-1 ;coroutine.resume(coroutine.create(function() Launcher();end));end v71=true;end end end if not v30.TouchEnabled then v29.Button1Down:connect(Shoot);end function StopLoops() if ( not v27 or not v27:IsDescendantOf(game)) then return;end local v611=GunGrip(v27);if ( not v611 or not v611:IsA("Instance")) then return;end for v739,v740 in pairs(v611:GetChildren()) do if (v740:IsA("Sound") and (string.sub(v740.Name,1,4)=="Loop")) then v740:Stop();if (v740.Parent and v740.Parent:IsA("BasePart")) then Evt.FireSound:FireServer("Pause",v740,v740.Parent.Position);end v740.TimePosition=0;local v1120=string.sub(v740.Name,5);local v1121=v740.Parent and v740.Parent:FindFirstChild(v1120) ;if (v1121 and v1121:IsA("Sound")) then local v1309=v1121:Clone();v1309.Name="__" .. v1309.Name .. "__LoopEndShot" ;if (v216 and (typeof(v216)=="number")) then v1309.TimePosition=math.max(tick() -v216 ,0);else v1309.TimePosition=0;end v1309.Parent=v740.Parent;v1309:Play();v1309.Played:Connect(function() if v1309 then v1309:Destroy();end end);end end end v215.looping=false;end function StopShooting() if v33 then v77=false;if v23.AutoLoop then StopLoops();end end end v29.Button1Up:connect(StopShooting);v29.WheelForward:connect(function() if (v33 and not Aiming and not Reloading and not v3 and (v23.Bandage==false)) then v77=false;if (stance<1) then v73=true;stance=stance + 1 ;Evt.Stance:FireServer(stance,v23,v24);if (stance==1) then StanceUp();elseif (stance==0) then v73=false;IdleAnim();elseif (stance== -1) then StanceDown();end end end end);v30.InputBegan:Connect(function(v613,v614) if v614 then return;end if (v33 and not Aiming and not Reloading and not v3 and (v54.Value==false) and (v15==0)) then if ((v613.KeyCode==Enum.KeyCode.W) and v30:IsKeyDown(Enum.KeyCode.LeftAlt) and (v8==false)) then local v1227=1;v8=true;Evt.Blindfire:FireServer(v1227,v24);v77=false;BlindFireUp();v73=false;elseif ((v613.KeyCode==Enum.KeyCode.D) and v30:IsKeyDown(Enum.KeyCode.LeftAlt) and (v8==false)) then local v1374=2;v8=true;Evt.Blindfire:FireServer(v1374,v24);v77=false;BlindFireRight();v73=false;elseif ((v613.KeyCode==Enum.KeyCode.B) and (v8==false)) then local v1437=4;v8=true;Evt.Blindfire:FireServer(v1437,v24);v77=false;PointAimAnim();v73=false;elseif ((v613.KeyCode==Enum.KeyCode.B) and (v8==true)) then stance=0;Evt.Stance:FireServer(stance,v23,v24);v8=false;IdleAnim();elseif ((v613.KeyCode==Enum.KeyCode.W) and v30:IsKeyDown(Enum.KeyCode.LeftAlt) and (v8==true)) then stance=0;Evt.Stance:FireServer(stance,v23,v24);v8=false;IdleAnim();elseif ((v613.KeyCode==Enum.KeyCode.D) and v30:IsKeyDown(Enum.KeyCode.LeftAlt) and (v8==true)) then stance=0;Evt.Stance:FireServer(stance,v23,v24);v8=false;IdleAnim();end end end);v29.WheelBackward:connect(function() if (v33 and not Aiming and not Reloading and not v3 and (v23.Bandage==false)) then v77=false;if (stance> -2) then v73=true;stance=stance-1 ;Evt.Stance:FireServer(stance,v23,v24);if (stance== -1) then StanceDown();elseif (stance== -2) then Patrol();elseif (stance==0) then IdleAnim();v73=false;end end end end);local v235=game:GetService("UserInputService");v235.InputEnded:Connect(function(v615,v616) if not v616 then if ((v12.HoldToADS==true) and (v615.UserInputType==Enum.UserInputType.MouseButton2)) then if (Aiming and v33) then stance=0;Evt.Stance:FireServer(stance,v23,v24);game:GetService("UserInputService").MouseDeltaSensitivity=1;v5.Handle.AimUp:Play();tweenFoV(70,120);Aiming=false;DoAdsMesh(0);v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();end end end end);function Aimable() if (v33 and (stance> -2) and not v3 and CanADS and v23.CanAim) then return true;end return false;end function OnMB2Down() if (Aimable() and not Aiming and ((v31.Focus.p-v31.CFrame.p).magnitude<1)) then if (NVG and (v5.AimPart:FindFirstChild("NVAim")~=nil) and Bipod) then else if v73 then v73=false;IdleAnim();end stance=2;Evt.Stance:FireServer(stance,v23,v24);Aiming=true;game:GetService("UserInputService").MouseDeltaSensitivity=v55.Value/100 ;v5.Handle.AimDown:Play();Evt.Stance:FireServer(stance,v23,v24);v8=false;if (Bipod==false) then IdleAnim();end if ( not NVG or (v5.AimPart:FindFirstChild("NVAim")==nil)) then if (v5:FindFirstChild("AimPart2")~=nil) then if (v66==1) then tweenFoV(v23.ChangeFOV[1],120);if v23.FocusOnSight then v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.75),{ImageTransparency=0}):Play();else v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();end if v23.adsMesh1 then DoAdsMesh(1);end elseif (v66==2) then tweenFoV(v23.ChangeFOV[2],120);if v23.FocusOnSight2 then v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.75),{ImageTransparency=0}):Play();else v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();end if v23.adsMesh2 then DoAdsMesh(1);end end elseif (v66==1) then tweenFoV(v23.ChangeFOV[1],120);if v23.FocusOnSight then v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.75),{ImageTransparency=0}):Play();else v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();end if v23.adsMesh1 then DoAdsMesh(1);end elseif (v66==2) then tweenFoV(v23.ChangeFOV[2],120);if v23.FocusOnSight2 then v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.75),{ImageTransparency=0}):Play();else v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();end if v23.adsMesh2 then DoAdsMesh(1);end end else tweenFoV(70,120);v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();end end elseif (Aiming and v33) then stance=0;Evt.Stance:FireServer(stance,v23,v24);game:GetService("UserInputService").MouseDeltaSensitivity=1;v5.Handle.AimUp:Play();tweenFoV(70,120);Aiming=false;v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.5),{ImageTransparency=1}):Play();if (v23.adsMesh1 or v23.adsMesh2) then DoAdsMesh(0);end end end v29.Button2Down:connect(OnMB2Down);v28.Died:connect(function() ResetWorkspace();v28:UnequipTools();end);local v236=false;function onStateChanged(v617,v618) if (v618==Enum.HumanoidStateType.Swimming) then v34=true;if (v33 and (v23.Amphibious==false)) then Unset();v166:UnequipTools();elseif (v33 and (v23.Amphibious==true)) then v23.BSpeed=math.max(DefaultBSpeed-800 ,DefaultBSpeed/4 );v236=true;end elseif (v618~=Enum.HumanoidStateType.Swimming) then v34=false;if (v33 and (v236==true)) then v23.BSpeed=DefaultBSpeed;elseif (v33 and (v236==false)) then v23.BSpeed=v23.BSpeed;end end if v12.EnableFallDamage then if ((v618==Enum.HumanoidStateType.Freefall) and not v68) then v68=true;local v1230=0;local v1231=0;while v68 do v1230=v169.Velocity.magnitude;v1231=v1231 + 1 ;v26.Heartbeat:Wait();end local v1232=(v1230-v12.MaxVelocity) * v12.DamageMult ;if ((v1232>5) and (v1231>20)) then local v1378=PastaFX.FallDamage:Clone();v1378.Parent=v1.PlayerGui;v1378.Volume=v1232/v28.MaxHealth ;Debris:AddItem(v1378,v1378.TimeLength);v1378:Play();local v1382=v180 .. "-" .. v1.UserId ;Evt.ACS_AI.Damage:FireServer(v28,v1232,0,0,v1382);end elseif ((v618==Enum.HumanoidStateType.Landed) or (v618==Enum.HumanoidStateType.Dead)) then v68=false;end end end Evt.ServerBullet.OnClientEvent:Connect(function(v619,v620,v621,v622,v623,v624,v625,v626,v627,v628,v629,v630) if ((v619~=v1) and v619.Character) then if not v629 then v629=10000;end local v975=v620;local v976=Instance.new("Part");v976.Parent=ACS_Storage.Server;v976.Name=v619.Name .. "_Bullet" ;v976.Shape="Ball";v976.Size=Vector3.new(1,1,1);v976.CanCollide=false;v976.CFrame=v975;v976.Transparency=1;local v985=v976:GetMass();local v986=Instance.new("BodyForce",v976);v986.Force=Vector3.new(0,(v985 * 196.2) -(v622 * 196.2) ,0);v976.Velocity=v624 * v623 ;local v989=Instance.new("Attachment",v976);v989.Position=Vector3.new(0.1,0,0);local v991=Instance.new("Attachment",v976);v991.Position=Vector3.new( -0.1,0,0);if v621 then local v1233=Instance.new("Trail",v976);v1233.Attachment0=v989;v1233.Attachment1=v991;if v630 then v1233.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0)});v1233.WidthScale=NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,2)});else v1233.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1)});v1233.WidthScale=NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,1)});end v1233.Texture="rbxassetid://4107607856";v1233.TextureMode=Enum.TextureMode.Stretch;v1233.LightEmission=1;v1233.Lifetime=0.2;v1233.FaceCamera=true;v1233.Color=ColorSequence.new(v625);end if v627 then local v1243=Instance.new("BillboardGui",v976);v1243.Adornee=v976;local v1245=math.random(375,475)/10 ;v1243.Size=UDim2.new(v1245,0,v1245,0);v1243.LightInfluence=0;local v1248=Instance.new("ImageLabel",v1243);v1248.BackgroundTransparency=1;v1248.Size=UDim2.new(1,0,1,0);v1248.Position=UDim2.new(0,0,0,0);v1248.Image="http://www.roblox.com/asset/?id=1047066405";v1248.ImageColor3=v628;v1248.ImageTransparency=math.random(2,5)/15 ;if (v976:FindFirstChild("BillboardGui")~=nil) then v976.BillboardGui.Enabled=true;end end local v993={v619.Character,v976,ACS_Storage};local v994=v976.Position;local v995=v994;local v996=0;while v976 and v976.Parent do local v1122=v26.Heartbeat:Wait();if v12.ServerBulletThrottle then if (v996==0) then Throttle(v1122);else v996-=1 end end if (v996==0) then local v1314=Ray.new(v976.Position,v976.Position-v995 );local v1315,v1316=workspace:FindPartOnRayWithIgnoreList(v1314,v993,false,v12.IgnoreWater);if ( not v976 or not v976.Parent) then return;end if (v1315 or ((v994-v995).Magnitude>v629)) then v976:Destroy();return;else v995=v976.Position;end end end if (v976 and v976.Parent) then v976:Destroy();end return;end end);Evt.SVRPG.OnClientEvent:Connect(function(v631,v632,v633,v634,v635,v636,v637,v638) if ((v631~=v1) and v631.Character) then local v997=v632;local v998=Instance.new("Part");v998.Parent=workspace.ACS_WorkSpace.Server;v998.Name=v631.Name .. "_Bullet" ;Debris:AddItem(v998,5);v998.Shape="Ball";v998.Size=Vector3.new(1,1,1);v998.CanCollide=false;v998.CFrame=v997;v998.Transparency=0;local v1007=v638;local v1008=v998:GetMass();local v1009=Instance.new("BodyForce",v998);v1009.Force=Vector3.new(0,(v1008 * 196.2) -(v634 * 196.2) ,0);v998.Velocity=v636 * v635 ;local v1012=Instance.new("Attachment",v998);v1012.Position=Vector3.new(0,0,8);local v1014=Instance.new("Attachment",v998);v1014.Position=Vector3.new(0,0, -8);local v1016=game.ReplicatedStorage.RPG2:Clone();local v1017=game.ReplicatedStorage.RPGSmoke:Clone();local v1018=game.ReplicatedStorage.RPGEmitter:Clone();v1017.Parent=v998;v1018.Parent=v998;v1016.Parent=v998;end end);v28.StateChanged:connect(onStateChanged);Evt.ACS_AI.AIBullet.OnClientEvent:Connect(function(v639,v640,v641,v642,v643,v644,v645,v646,v647,v648,v649) if (v639~=v1) then local v1022=v640;local v1023=Instance.new("Part");v1023.Parent=ACS_Storage.Server;v1023.Name=v639.Name .. "_Bullet" ;v1023.Shape="Ball";v1023.Size=Vector3.new(1,1,1);v1023.CanCollide=false;v1023.CFrame=v1022;v1023.Transparency=1;local v1032=v1023:GetMass();local v1033=Instance.new("BodyForce",v1023);v1033.Force=Vector3.new(0,(v1032 * 196.2) -(v642 * 196.2) ,0);v1023.Velocity=v644 * v643 ;local v1036=Instance.new("Attachment",v1023);v1036.Position=Vector3.new(0.1,0,0);local v1038=Instance.new("Attachment",v1023);v1038.Position=Vector3.new( -0.1,0,0);if v641 then local v1255=Instance.new("Trail",v1023);v1255.Attachment0=v1036;v1255.Attachment1=v1038;v1255.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1)});v1255.WidthScale=NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0)});v1255.Texture="rbxassetid://4107607856";v1255.TextureMode=Enum.TextureMode.Stretch;v1255.LightEmission=1;v1255.Lifetime=0.2;v1255.FaceCamera=true;v1255.Color=ColorSequence.new(v645);end if v647 then local v1267=Instance.new("BillboardGui",v1023);v1267.Adornee=v1023;local v1269=math.random(375,475)/10 ;v1267.Size=UDim2.new(v1269,0,v1269,0);v1267.LightInfluence=0;local v1272=Instance.new("ImageLabel",v1267);v1272.BackgroundTransparency=1;v1272.Size=UDim2.new(1,0,1,0);v1272.Position=UDim2.new(0,0,0,0);v1272.Image="http://www.roblox.com/asset/?id=1047066405";v1272.ImageColor3=v648;v1272.ImageTransparency=math.random(2,5)/15 ;if (v1023:FindFirstChild("BillboardGui")~=nil) then v1023.BillboardGui.Enabled=true;end end local v1040={v639.Character,v1023,ACS_Storage};local v1041=v1023.Position;local v1042=v1041;local v1043=0;while true do local v1123=v26.Heartbeat:Wait();if v12.ServerBulletThrottle then if (v1043==0) then Throttle(v1123);else v1043=v1043-1 ;end end if (v1043==0) then local v1317=Ray.new(v1023.Position,v1023.Position-v1042 );local v1318,v1319=workspace:FindPartOnRayWithIgnoreList(v1317,v1040,false,v12.IgnoreWater);if not v1023 then return;end if (v1318 or ((v1041-v1042).Magnitude>10000)) then v1023:Destroy();return;else v1042=v1023.Position;end end end v1023:Destroy();return;end end);Evt.ACS_AI.AIShoot.OnClientEvent:Connect(function(v650) for v741,v742 in pairs(v650.Muzzle:GetChildren()) do if v742:IsA("Motor6D") then elseif ((string.sub(v742.Name,1,7)=="FlashFX") or (string.sub(v742.Name,1,5)=="Smoke")) then v742.Enabled=true;end end v112(1/30 ,function() for v1044,v1045 in pairs(v650.Muzzle:GetChildren()) do if v1045:IsA("Motor6D") then elseif ((string.sub(v1045.Name,1,7)=="FlashFX") or (string.sub(v1045.Name,1,5)=="Smoke")) then v1045.Enabled=false;end end end);end);function FireMode() if (v33 and not Reloading and not v74 and v23.FireModes.ChangeFiremode) then local v1046=v5.Handle:FindFirstChild("FireMode");if v1046 then v1046:Play();else v5.Handle.SafetyClick:Play();end if (v23.Mode=="Safe") then if v23.FireModes.Semi then v23.Mode="Semi";elseif v23.FireModes.Burst then v23.Mode="Burst";elseif v23.FireModes.Auto then v23.Mode="Auto";elseif v23.FireModes.Explosive then v23.Mode="Explosive";end v73=false;elseif (v23.Mode=="Semi") then if v23.FireModes.Burst then v23.Mode="Burst";elseif v23.FireModes.Auto then v23.Mode="Auto";elseif v23.FireModes.Explosive then v23.Mode="Explosive";elseif v23.FireModes.Safe then v23.Mode="Safe";end Evt.Stance:FireServer(stance,v23,v24);elseif (v23.Mode=="Burst") then v73=false;if v23.FireModes.Auto then v23.Mode="Auto";elseif v23.FireModes.Explosive then v23.Mode="Explosive";elseif v23.Firemodes.Safe then v23.Mode="Safe";elseif v23.FireModes.Semi then v23.Mode="Semi";end elseif (v23.Mode=="Auto") then v73=false;if v23.FireModes.Explosive then v23.Mode="Explosive";elseif v23.FireModes.Safe then v23.Mode="Safe";elseif v23.FireModes.Semi then v23.Mode="Semi";elseif v23.FireModes.Burst then v23.Mode="Burst";end elseif (v23.Mode=="Explosive") then v73=false;stance=0;if v23.FireModes.Safe then v23.Mode="Safe";elseif v23.FireModes.Semi then v23.Mode="Semi";elseif v23.FireModes.Burst then v23.Mode="Burst";elseif v23.FireModes.Explosive then v23.Mode="Auto";end end end end function Reload() if (v33 and (stance> -2) and (v23.Bandage==false)) then v75=false;if ((v46.Value>0) and (v23.Mode~="Explosive") and not Reloading and (v23.ReloadType==1)) then if ((v23.IncludeChamberedBullet and (v45.Value==(v23.Ammo + 1))) or ( not v23.IncludeChamberedBullet and (v45.Value==v23.Ammo) and (v50.Value==true))) then return;end game:GetService("UserInputService").MouseDeltaSensitivity=1;v5.Handle.AimUp:Play();tweenFoV(70,120);CanADS=false;Aiming=false;v77=false;v71=false;Reloading=true;if v73 then v73=false;stance=0;Evt.Stance:FireServer(stance,v23,v24);IdleAnim();wait(0.25);end ReloadAnim();if ((v50.Value==false) and v23.FastReload) then if v70.Value then ChamberBKAnim();else ChamberAnim();end end Sprint();CanADS=true;v71=true;Reloading=false;elseif ((v46.Value>0) and (v23.Mode~="Explosive") and not Reloading and (v23.ReloadType==2)) then if ((v23.IncludeChamberedBullet and (v45.Value==(v23.Ammo + 1))) or ( not v23.IncludeChamberedBullet and (v45.Value==v23.Ammo) and (v50.Value==true)) or v75) then Sprint();return;end v77=false;v71=false;Reloading=true;if v73 then v73=false;stance=0;Evt.Stance:FireServer(stance);Sprint();wait(0.25);end if ((v45.Value==v23.Ammo) and v23.IncludeChamberedBullet) then if ((v46.Value>0) and not v75 and (v45.Value<v23.Ammo) and not v74) then ShellInsertAnim();end else for v1447=1,v23.Ammo-v45.Value do if ((v46.Value>0) and not v75 and (v45.Value<v23.Ammo) and not v74) then ShellInsertAnim();end end end if ((v50.Value==false) and v23.FastReload) then if v70.Value then ChamberBKAnim();else ChamberAnim();end end Sprint();v75=false;v71=true;Reloading=false;elseif ((v46.Value>0) and (v23.Mode~="Explosive") and Reloading and (v23.ReloadType==2) and v74) then if not v75 then v75=true;Sprint();wait(0.25);end elseif ( not Reloading and (v47.Value>0) and (v23.Mode=="Explosive") and (v51.Value==false)) then v77=false;v71=false;Reloading=true;GLReloadAnim();v51.Value=true;Sprint();v71=true;Reloading=false;end end end function Chamber() if (v33 and not Reloading and ((Aiming and v23.ChamberWhileAim) or not Aiming) and (stance> -2) and (v23.Bandage==false)) then if (v23.Mode=="Safe") then if v23.AutoSwitchFromSafe then FireMode();elseif v23.SafeDisablesChambering then return;end end v77=false;v71=false;Reloading=true;if v73 then v73=false;stance=0;Evt.Stance:FireServer(stance,v23,v24);IdleAnim();wait(0.25);end if not v70.Value then ChamberAnim();else ChamberBKAnim();end Sprint();v71=true;Reloading=false;end end function ChangeZoom() if (v33 and not v74 and not Reloading and ( not NVG or (v5.AimPart:FindFirstChild("NVAim")==nil))) then if Aiming then if (v5:FindFirstChild("AimPart2")~=nil) then if (v66==1) then v66=2;tweenFoV(v23.ChangeFOV[2],120);if (v23.FocusOnSight2 and Aiming) then v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.75),{ImageTransparency=0}):Play();else v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();end if v23.ZoomAnim then ZoomAnim();Sprint();end if v23.adsMesh2 then DoAdsMesh(1);else DoAdsMesh(0);end elseif (v66==2) then v66=1;tweenFoV(v23.ChangeFOV[1],120);if (v23.FocusOnSight and Aiming) then v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.75),{ImageTransparency=0}):Play();else v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();end if v23.ZoomAnim then UnZoomAnim();Sprint();end if v23.adsMesh1 then DoAdsMesh(1);else DoAdsMesh(0);end end elseif (v66==1) then v66=2;tweenFoV(v23.ChangeFOV[2],120);if (v23.FocusOnSight2 and Aiming) then v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.75),{ImageTransparency=0}):Play();else v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();end if v23.ZoomAnim then ZoomAnim();Sprint();end if v23.adsMesh2 then DoAdsMesh(1);else DoAdsMesh(0);end elseif (v66==2) then v66=1;tweenFoV(v23.ChangeFOV[1],120);if (v23.FocusOnSight and Aiming) then v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.75),{ImageTransparency=0}):Play();else v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();end if v23.ZoomAnim then UnZoomAnim();Sprint();end if v23.adsMesh1 then DoAdsMesh(1);else DoAdsMesh(0);end end elseif (v66==1) then v66=2;if (v23.FocusOnSight2 and Aiming) then v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.75),{ImageTransparency=0}):Play();else v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();end if v23.ZoomAnim then ZoomAnim();Sprint();end elseif (v66==2) then v66=1;if (v23.FocusOnSight and Aiming) then v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.75),{ImageTransparency=0}):Play();else v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();end if v23.ZoomAnim then UnZoomAnim();Sprint();end end end end v30.InputBegan:Connect(function(v651,v652) if ((v651.UserInputType==Enum.UserInputType.MouseButton1) and (v33==true) and (v23.Bandage==true)) then Bandagingg();end end);local v237=false;v29.KeyDown:connect(function(v653) if (v653==v13.FireMode) then FireMode();elseif (v653==v13.Zoom) then ChangeZoom();elseif ((v653==v13.ZeroDown) and v33) then if (v56.Value>v56.MinValue) then v56.Value=v56.Value-50 ;v5.Handle.Click:Play();end elseif ((v653==v13.ZeroUp) and v33) then if (v56.Value<v56.MaxValue) then v56.Value=v56.Value + 50 ;v5.Handle.Click:Play();end elseif ((v653==v13.NVLightDown) and v33 and not Reloading and not v74 and not Sights.Value) then if not v5:FindFirstChild("ProjectorSight") then return;elseif ((v5.ProjectorSight.SurfaceGui.LightInfluence<1.2) and (v5.ProjectorSight.SurfaceGui.LightInfluence> -0.2)) then v5.ProjectorSight.SurfaceGui.LightInfluence=v5.ProjectorSight.SurfaceGui.LightInfluence + 0.2 ;v5.Handle.Click:Play();elseif ((v5.ProjectorSight.SurfaceGui.LightInfluence< -0.2) and not Sights.Value) then v5.ProjectorSight.SurfaceGui.LightInfluence=v5.ProjectorSight.SurfaceGui.LightInfluence + 0.4 ;v5.Handle.Click:Play();end elseif ((v653==v13.NVLightUp) and v33 and not Reloading and not v74 and not Sights.Value) then if not v5:FindFirstChild("ProjectorSight") then return;elseif ((v5.ProjectorSight.SurfaceGui.LightInfluence<1.2) and (v5.ProjectorSight.SurfaceGui.LightInfluence> -0.2)) then v5.ProjectorSight.SurfaceGui.LightInfluence=v5.ProjectorSight.SurfaceGui.LightInfluence-0.2 ;v5.Handle.Click:Play();elseif ((v5.ProjectorSight.SurfaceGui.LightInfluence>1.2) and not Sights.Value) then v5.ProjectorSight.SurfaceGui.LightInfluence=v5.ProjectorSight.SurfaceGui.LightInfluence-0.2 ;v5.Handle.Click:Play();end elseif (v653==v13.Reload) then Reload();elseif (v653==v13.Chamber) then Chamber();elseif ((v653==v13.MagCheck) and v33 and v23.CanCheckMag and not Reloading and (stance> -2)) then v77=false;v71=true;Reloading=true;if v73 then v73=false;stance=0;Evt.Stance:FireServer(stance,v23,v24);IdleAnim();wait(0.25);end CheckAnim();Sprint();v71=true;Reloading=false;elseif ((v653==v13.Flashlight) and v33 and not v74 and not Reloading and v5:FindFirstChild("FlashPoint")) then FlashlightEnabled= not FlashlightEnabled;v5.Handle.Click:Play();if FlashlightEnabled then local v1527=v5.FlashPoint:FindFirstChild("LightBeam");if v1527 then v5.FlashPoint.LightBeam.Enabled=true;end v5.FlashPoint.Light.Enabled=true;Evt.SVFlash:FireServer(true,v4,v5.FlashPoint.Light.Angle,v5.FlashPoint.Light.Brightness,v5.FlashPoint.Light.Color,v5.FlashPoint.Light.Range);else Evt.SVFlash:FireServer(false,v4,nil,nil,nil,nil);local v1529=v5.FlashPoint:FindFirstChild("LightBeam");if v1529 then v5.FlashPoint.LightBeam.Enabled=false;end v5.FlashPoint.Light.Enabled=false;end elseif ((v653==v13.Silencer) and v33 and not v74 and not Reloading and FindSilencer(v5)) then Silencer.Value= not Silencer.Value;local v1532=FindSilencer(v5);if Silencer.Value then v71=false;SilencerOnAnim();Evt.SilencerEquip:FireServer(v4,Silencer.Value);if v1532 then v1532.Transparency=0;end v71=true;else v71=false;SilencerOffAnim();Evt.SilencerEquip:FireServer(v4,Silencer.Value);if v1532 then v1532.Transparency=1;end v71=true;end elseif ((v653==v13.Bipod) and v33 and BipodEnabled and not v74 and not Reloading and v5:FindFirstChild("BipodPoint")) then Bipod= not Bipod;if (Bipod==true) then if (v5.BipodPoint:FindFirstChild("BipodDeploy")~=nil) then if not v23.ManualBipodSound then v5.BipodPoint.BipodDeploy:Play();end BipodIdle();BipodDown();end elseif (v5.BipodPoint:FindFirstChild("BipodRetract")~=nil) then if not v23.ManualBipodSound then v5.BipodPoint.BipodRetract:Play();end IdleAnim();BipodUp();end elseif ((v653==v13.NightVision) and (v237==false)) then if v1.Character then local v1537=v1.Character:FindFirstChild("Helmet");if v1537 then local v1538=v1537:FindFirstChild("Up");if v1538 then v237=true;delay(0.8,function() NVG= not NVG;if (Aiming and (v5.AimPart:FindFirstChild("NVAim")~=nil)) then if NVG then tweenFoV(70,120);v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();elseif (v66==1) then tweenFoV(v23.ChangeFOV[1],120);if v23.FocusOnSight then v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.75),{ImageTransparency=0}):Play();else v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();end elseif (v66==2) then tweenFoV(v23.ChangeFOV[2],120);if v23.FocusOnSight2 then v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.75),{ImageTransparency=0}):Play();else v25:Create(v209.Efeitos.Aim,TweenInfo.new(0.3),{ImageTransparency=1}):Play();end end end v237=false;end);end end end end end);local v238=nil;function IdleAnim() v8=false;fallback(v24,"IdleAnim",fbAnims.IdleAnim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v90,v91,v96,v97,v98,v99});end function PointAimAnim() fallback(v24,"PointAim",fbAnims.PointAim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v90,v91,v96,v97,v98,v99});end function StanceDown() fallback(v24,"StanceDown",fbAnims.StanceDown)(v27,v238,{v101,v92,v93,v100.GripW,v5,v90,v91,v96,v97,v98,v99});end function StanceUp() fallback(v24,"StanceUp",fbAnims.StanceUp)(v27,v238,{v101,v92,v93,v100.GripW,v5,v90,v91,v96,v97,v98,v99});end function BlindFireUp() fallback(v24,"BlindFireUp",fbAnims.BlindFireUp)(v27,v238,{v101,v92,v93,v100.GripW,v5,v90,v91,v96,v97,v98,v99});end function BipodIdle() fallback(v24,"BipodIdle",fbAnims.BipodIdle)(v27,v238,{v101,v92,v93,v100.GripW,v5,v90,v91,v96,v97,v98,v99});end function BlindFireRight() fallback(v24,"BlindFireRight",fbAnims.BlindFireRight)(v27,v238,{v101,v92,v93,v100.GripW,v5,v90,v91,v96,v97,v98,v99});end function BlindFireLeft() fallback(v24,"BlindFireLeft",fbAnims.BlindFireLeft)(v27,v238,{v101,v92,v93,v100.GripW,v5,v90,v91,v96,v97,v98,v99});end function BlindFire() fallback(v24,"BlindFireUp",fbAnims.BlindFireUp)(v27,v238,{v101,v92,v93,v100.GripW,v5,v90,v91,v96,v97,v98,v99});end function BlindFireRight() fallback(v24,"BlindFireRight",fbAnims.BlindFireRight)(v27,v238,{v101,v92,v93,v100.GripW,v5,v90,v91,v96,v97,v98,v99});end function Patrol() fallback(v24,"Patrol",fbAnims.Patrol)(v27,v238,{v101,v92,v93,v100.GripW,v5,v90,v91,v96,v97,v98,v99});end function SprintAnim() fallback(v24,"SprintAnim",fbAnims.SprintAnim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v90,v91,v96,v97,v98,v99});end function EquipAnim() v74=true;v71=false;Reloading=true;if v22:FindFirstChild("ServerAnimations") then Evt.Anims:FireServer("EquipAnim",v231,"S" .. v5.Name );end fallback(v24,"EquipAnim",fbAnims.EquipAnim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v90,v91,v96,v97,v98,v99,v46,v45,v23});Reloading=false;v71=true;v74=false;end function ChamberProcess() if (v45.Value>0) then if (v50.Value==true) then if (v53.Value==true) then EjectShells();ShellEjectSound();v45.Value=v45.Value-1 ;v53.Value=false;elseif not v23.OpenBolt then EjectShells();ShellEjectSound();v45.Value=v45.Value-1 ;end if ((v45.Value<=0) and not v23.OpenBolt) then v50.Value=false;end else v50.Value=true;v53.Value=false;end elseif v23.OpenBolt then v50.Value=true;v53.Value=false;else v50.Value=false;end v70.Value=false;end function ChamberAnim() Evt.Recarregar:FireServer(v46.Value,v4,v45.Value,v50.Value);v74=true;if v22:FindFirstChild("ServerAnimations") then Evt.Anims:FireServer("ChamberAnim",v231,"S" .. v5.Name );end local v655=Instance.new("BoolValue");v655.Value=false;fallback(v24,"ChamberAnim",fbAnims.ChamberAnim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v23,v91,v90,v96,v97,v98,v99,ChamberProcess,v655});if not v655.Value then ChamberProcess();end v655:Destroy();v74=false;end function ZoomAnim() fallback(v24,"ZoomAnim",fbAnims.ZoomAnim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v23,v90,v91,v96,v97,v98,v99});end function UnZoomAnim() fallback(v24,"UnZoomAnim",fbAnims.UnZoomAnim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v23,v90,v91,v96,v97,v98,v99});end function ChamberBKAnim() v74=true;if v22:FindFirstChild("ServerAnimations") then Evt.Anims:FireServer("ChamberBKAnim",v231,"S" .. v5.Name );end fallback(v24,"ChamberBKAnim",fbAnims.ChamberBKAnim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v23,v90,v91,v96,v97,v98,v99});v70.Value=false;if (v45.Value>0) then v50.Value=true;end v74=false;end function CheckAnim() v74=true;if v22:FindFirstChild("ServerAnimations") then Evt.Anims:FireServer("CheckAnim",v231,"S" .. v5.Name );end if not v23.ManualMagCheck then CheckMagFunction();end fallback(v24,"CheckAnim",fbAnims.CheckAnim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v46,v45,v23,v50,v90,v91,v96,v97,v98,v99,CheckMagFunction});v74=false;end function ShellInsertAnim() v74=true;Evt.Recarregar:FireServer(v46.Value,v4,v45.Value,v50.Value);if v22:FindFirstChild("ServerAnimations") then Evt.Anims:FireServer("ShellInsertAnim",v231,"S" .. v5.Name );end fallback(v24,"ShellInsertAnim",fbAnims.ShellInsertAnim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v46,v45,v23,v50,v90,v91,v96,v97,v98,v99});v74=false;end function ReloadAnim() v74=true;Evt.Recarregar:FireServer(v46.Value,v4,v45.Value,v50.Value);if v22:FindFirstChild("ServerAnimations") then Evt.Anims:FireServer("ReloadAnim",v231,"S" .. v5.Name );end fallback(v24,"ReloadAnim",fbAnims.ReloadAnim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v46,v45,v23,v50,v90,v91,v96,v97,v98,v99});v74=false;end function Bandagingg() if (v76==false) then v76=true;v74=true;fallback(v24,"Bandaging",fbAnims.ReloadAnim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v46,v45,v23,v50,v90,v91,v96,v97,v98,v99});v74=false;else return;end end function SilencerOnAnim() v74=true;if v22:FindFirstChild("ServerAnimations") then Evt.Anims:FireServer("SilencerOnAnim",v231,"S" .. v5.Name );end fallback(v24,"SilencerOnAnim",fbAnims.SilencerOnAnim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v23,v90,v91,v96,v97,v98,v99});v74=false;end function SilencerOffAnim() v74=true;if v22:FindFirstChild("ServerAnimations") then Evt.Anims:FireServer("SilencerOffAnim",v231,"S" .. v5.Name );end fallback(v24,"SilencerOffAnim",fbAnims.SilencerOffAnim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v23,v90,v91,v96,v97,v98,v99});v74=false;end function FireAnim() if v22:FindFirstChild("ServerAnimations") then Evt.Anims:FireServer("FireAnim",v231,"S" .. v5.Name );end fallback(v24,"FireAnim",fbAnims.FireAnim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v46,v45,v23,v50,v90,v91,v96,v97,v98,v99});end function FireMAnim() v74=true;if v22:FindFirstChild("ServerAnimations") then Evt.Anims:FireServer("FireMAnim",v231,"S" .. v5.Name );end fallback(v24,"FireMAnim",fbAnims.FireMAnim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v23,v90,v91,v96,v97,v98,v99});v74=false;end function BipodDown() v74=true;if v22:FindFirstChild("ServerAnimations") then Evt.Anims:FireServer("BipodDown",v231,"S" .. v5.Name );end fallback(v24,"BipodDown",fbAnims.BipodDown)(v27,v238,{v101,v92,v93,v100.GripW,v5,v23,v90,v91,v96,v97,v98,v99});v74=false;end function BipodUp() v74=true;if v22:FindFirstChild("ServerAnimations") then Evt.Anims:FireServer("BipodUp",v231,"S" .. v5.Name );end fallback(v24,"BipodUp",fbAnims.BipodUp)(v27,v238,{v101,v92,v93,v100.GripW,v5,v23,v90,v91,v96,v97,v98,v99});v74=false;end function GLReloadAnim() v74=true;Evt.Recarregar:FireServer(v46.Value,v4,v45.Value,v50.Value);if v22:FindFirstChild("ServerAnimations") then Evt.Anims:FireServer("GLReloadAnim",v231,"S" .. v5.Name );end fallback(v24,"GLReloadAnim",fbAnims.GLReloadAnim)(v27,v238,{v101,v92,v93,v100.GripW,v5,v46,v45,v23,v50,v90,v91,v96,v97,v98,v99});v74=false;end print(v0 .. " loaded" );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment