local s = {} s.pla = game:GetService("Players") s.ts = game:GetService("TweenService") s.ui = game:GetService("UserInputService") s.rep = game:GetService("ReplicatedStorage") s.run = game:GetService("RunService") s.lp = s.pla.LocalPlayer s.vo, s.vi = pcall(game.GetService, game, "VirtualInputManager") if not s.vo then s.vi = nil end s.ev = s.rep:WaitForChild("ACS_Engine"):WaitForChild("Events") s.Damage = s.ev:WaitForChild("Damage") s.AccessIdEvent = s.ev:WaitForChild("AcessId") s.Atirar = s.ev:WaitForChild("Atirar") s.Equip = s.ev:FindFirstChild("Equip") s.Shell = s.ev:WaitForChild("Shell") s.HitEffect = s.ev:WaitForChild("HitEffect") s.HeadRotEvent = s.ev:WaitForChild("HeadRot") s.gec = function() local en = s.rep:FindFirstChild("ACS_Engine") local ru = en and en:FindFirstChild("GameRules") or nil local cfg = ru and ru:FindFirstChild("Config") or nil if not cfg then return nil end local ok, re = pcall(require, cfg) if ok and type(re) == "table" then return re end return nil end s.gc = s.gec() s.tk = s.gc and s.gc.TeamKill == true s.reb = s.gc and s.gc.ReplicatedBullets == true s.ServerBullet = s.reb and s.ev:FindFirstChild("ServerBullet") or nil s.rat = 0.1 s.def = 0.3 s.bul = 0.016666666666666666 s.bus = s.gc and tonumber(s.gc.BulletSpeedScale) or 3 s.bms = s.gc and tonumber(s.gc.MinBulletSpeed) or 4000 s.gi = function(se) local ra = se and tonumber(se.ShootRate) or nil if ra and ra > 0 then return math.max(60 / ra, 0.05) end return s.def end s.bsp = function(se, mod) local mv = tonumber(se.MuzzleVelocity) or 300 local ad = 1 if mod and tonumber(mod.MuzzleVelocity) then ad = tonumber(mod.MuzzleVelocity) end return math.max(mv / 0.28 * s.bus * ad, s.bms) end s.cg = "Hi-Point C9" s.cs = { Ammo = 8, ShootRate = 520, BarrelAtt = "", EnableZeroing = false, MinRecoilPower = 0.84999999999999998, Zoom = 64, HolsterCFrame = CFrame.new(0.58499997854232788, 0.5, 0, 1, -0, 0, 0, -4.3711388286737929e-08, 1, 0, -1, -4.3711388286737929e-08), MaxRecoilPower = 1.25, OtherAtt = "", BulletPenetration = 35, CanCheckMag = true, FalloffStart = 40, FalloffEnd = 180, MuzzleVelocity = 385, WeaponWeight = 0.69999999999999996, CanBreachDoor = false, FireModes = { Auto = false, Burst = false, ChangeFiremode = false, Semi = false }, camRecoil = { camRecoilUp = { 19, 22 }, camRecoilRight = { 5, 6 }, camRecoilLeft = { 4, 5 }, camRecoilTilt = { 95, 118 } }, gunName = "Hi-Point C9", HeadDamage = { 110, 110 }, Zoom2 = 64, MagCount = true, InfraRed = false, AimInaccuracyStepAmount = 4.2000000000000002, CurrentZero = 0, RainbowMode = false, CrosshairOffset = 0, AimSpreadReduction = 5.5, ShootType = 1, Bullets = 1, EnableHUD = true, SlideEx = CFrame.new(0, 0, -0.30000001192092896, 1, 0, 0, 0, 1, 0, 0, 0, 1), Tracer = false, LimbDamage = { 24, 24 }, ShellEjectionMod = true, FalloffMin = 0.69999999999999996, UnderBarrelAtt = "", Jammed = false, TracerEveryXShots = 3, CenterDot = false, CanBreak = false, TorsoDamage = { 33, 33 }, ShellInsert = false, HolsterPoint = "Right Leg", gunRecoil = { gunRecoilTilt = { 39, 58 }, gunRecoilUp = { 99, 114 }, gunRecoilLeft = { 12, 19 }, gunRecoilRight = { 13, 20 } }, BurstShot = 3, AmmoInGun = 8, RecoilPowerStepAmount = 0.10000000000000001, TracerColor = Color3.new(1, 1, 1), MinSpread = 14, Holster = false, MaxSpread = 32, CrossHair = false, StoredAmmo = 40, BulletDrop = 0.065000000000000002, MaxStoredAmmo = 56, BulletFlare = false, BulletType = "9x19mm", SlideLock = true, IgnoreProtection = false, AimInaccuracyDecrease = 1.8, MaxZero = 500, WalkMult = 0.90000000000000002, adsTime = 0.65000000000000002, AimRecoilReduction = 2.1299999999999999, Type = "Gun", ZeroIncrement = 50, IncludeChamberedBullet = true, canAim = true, SightAtt = "", RandomTracer = { Enabled = false, Chance = 25 }, Recoil = { Wander = 0.59999999999999998, Climb = 0.24199999999999999, KickHip = 5.1520000000000001, Weave = 0.29999999999999999, Period = 6, KickRoll = 2.2799999999999998, Shake = 0.23400000000000001, PunchRoll = 1.125, Flick = 0.5, Recovery = 0.93999999999999995, Side = 0.16, Kickback = 0.087999999999999995, Punch = 0.45600000000000002, Aim = { Wander = 0.35699999999999999, Climb = 0.378, Weave = 0.44, EscalateFrom = 3, Cap = 4.25, KickRoll = 2.633, Shake = 0.28199999999999997, RecoverySpeed = 14, RecoveryDelay = 0.14000000000000001, Build = 1.8, Snap = 17.5, PunchSide = 0.30599999999999999, Side = 0.32400000000000001, Kickback = 0.111, Flick = 0.55000000000000004, RecoveryLoss = 0.14999999999999999, GunSnap = 22.899999999999999, Jolt = 0.029000000000000001, KickSide = 1.0369999999999999, Recovery = 0.92000000000000004, Rumble = 0.14999999999999999, PunchRoll = 1.3620000000000001, Kick = 2.9319999999999999, Punch = 0.71199999999999997, EscalateOver = 6, Escalate = 0.5 }, GunSnap = 26, Jolt = 0.02, ShakeSnap = 55, KickSide = 0.57599999999996, PunchSide = 0.17000000000000001, Rumble = 0.14999999999999999, Kick = 2.04, Bias = 0.10000000000000001, Snap = 19, Cap = 2.5299999999999998 } } s.cmo = { SpreadRM = 1, RecoilPowerStepAmount = 1, Zoom2Value = 64, MaxSpread = 1, MinRecoilPower = 1, DamageMod = 1, minDamageMod = 1, MaxRecoilPower = 1, AimInaccuracyStepAmount = 1, WalkMult = 1, AimRM = 1, gunRecoilMod = { RecoilRight = 1, RecoilUp = 1, RecoilTilt = 1, RecoilLeft = 1 }, MuzzleVelocity = 1, ZoomValue = 64, MinSpread = 1, AimInaccuracyDecrease = 1, camRecoilMod = { RecoilRight = 1, RecoilTilt = 1, RecoilUp = 1, RecoilLeft = 1 }, adsTime = 1 } s.az = Color3.fromRGB(89, 145, 246) s.oc = Color3.fromRGB(70, 76, 88) s.win = Color3.fromRGB(18, 20, 26) s.tec = Color3.fromRGB(235, 238, 242) s.sub = Color3.fromRGB(150, 158, 172) s.ec = Color3.fromRGB(255, 40, 40) s.aci = nil s.ck = nil s.cap = nil s.sv = false s.pe = nil s.shs = false s.aj = false s.cf = false s.kh = false s.on = nil s.np = false s.pt = nil s.lt = nil s.mst = nil s.dm = nil s.ds = nil s.dit = nil s.af = nil s.ai = nil s.as = nil s.act = nil s.acc = nil s.acb = false s.asra = 0 s.amm = false s.fas = false s.adc = 0 s.htl = nil s.rp = nil s.rbc = nil s.rb = nil s.rc = nil s.ras = nil s.rac = false s.hsp = nil s.hso = nil s.ks = nil s.ki = nil s.sai = function() local sta = os.clock() local function che(va) if type(va) ~= "string" then return nil end return va:match("(%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x)") end local ch = s.lp.Character local cu = nil if ch then cu = ch:FindFirstChildOfClass("Tool") end local function sf(fn, str) local up = nil if type(getupvalues) == "function" then local ok, re = pcall(getupvalues, fn) if ok and type(re) == "table" then up = re end end if not up and type(debug) == "table" and type(debug.getupvalue) == "function" then up = {} local i = 1 while true do local ok, na, va = pcall(debug.getupvalue, fn, i) if not ok or na == nil then break end up[na] = va i = i + 1 end end if not up then return nil end local uu = nil local hd = false local has = false for u, v in pairs(up) do if v == s.Damage then hd = true end if not hd and (type(v) == "table" or type(v) == "userdata") then local ok, chi = pcall(function() return v.Damage end) if ok and chi == s.Damage then hd = true end end if (cu and v == cu) or (ch and v == ch) then has = true end local hi = che(v) if hi then uu = hi end end if hd and uu and (not str or has) then return uu end return nil end if type(getgc) ~= "function" then return nil end local ok, li = pcall(getgc, true) if ok and type(li) == "table" then for idx, ob in ipairs(li) do if idx % 200 == 0 then task.wait() if os.clock() - sta > 8 then return nil end end if type(ob) == "function" then local hi = sf(ob, true) if hi then return hi end end end for idx, ob in ipairs(li) do if idx % 200 == 0 then task.wait() if os.clock() - sta > 8 then return nil end end if type(ob) == "function" then local hi = sf(ob, false) if hi then return hi end end end end return nil end s.pk = function(id) if type(id) ~= "string" then return false end local hi = id:match("(%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x)") if not hi then return false end s.aci = hi s.ck = hi .. "-" .. tostring(s.lp.UserId) s.cap = s.lp.Character s.sv = true s.cf = false s.aj = false return true end s.atc = function() if s.sv or s.aj then return end s.aj = true s.cf = false task.spawn(function() if s.pe and s.pk(s.pe) then return end local fo = s.sai() if fo and s.pk(fo) then return end s.aj = false if not s.sv then s.cf = true end end) end s.ik = function() if s.kh then return end if type(hookmetamethod) ~= "function" or type(getnamecallmethod) ~= "function" or type(checkcaller) ~= "function" then return end local ok = pcall(function() local hf = function(sel, ...) local me = getnamecallmethod() if not checkcaller() and me == "InvokeServer" and sel == s.AccessIdEvent then local re = s.on(sel, ...) if re ~= nil then s.aci = tostring(re) s.pe = s.aci s.pk(s.aci) end return re end if not checkcaller() and me == "InvokeServer" and sel == s.Damage then local ao = select(9, ...) if type(ao) == "string" then local hi = ao:match("^(%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x)%-") if hi then s.pe = hi s.shs = true s.pk(hi) end end end if not checkcaller() and me == "FireServer" and s.Equip and sel == s.Equip then local et = select(1, ...) if et and type(et) == "Instance" then if s.lt ~= nil and et ~= s.lt then s.np = true s.pt = et else s.pt = et end end end if not checkcaller() and me == "FireServer" and sel == s.Atirar then local sh = select(1, ...) if sh and type(sh) == "Instance" then s.mst = sh if s.np and s.pt and sh == s.pt then s.np = false s.pt = nil end end s.shs = true if s.af == nil and s.dm ~= nil and s.dm > 0 then s.dm = s.dm - 1 end s.cf = false s.atc() end if not checkcaller() and me == "FireServer" and s.HeadRotEvent and sel == s.HeadRotEvent and s.hb then local arg = {...} if arg[1] ~= nil and typeof(arg[1]) == "CFrame" then arg[1] = s.ahs end return s.on(sel, table.unpack(arg)) end return s.on(sel, ...) end if type(newcclosure) == "function" then hf = newcclosure(hf) end s.on = hookmetamethod(game, "__namecall", hf) end) if ok and s.on then s.kh = true end end s.ik() s.lp.CharacterAdded:Connect(function() s.aci = nil s.ck = nil s.cap = nil s.sv = false s.pe = nil s.shs = false s.aj = false s.cf = false s.np = false s.pt = nil s.lt = nil s.mst = nil s.af = nil s.ai = nil s.as = nil s.act = nil s.acc = nil s.adc = 0 s.wt = nil s.wds = nil s.wr = nil if s.wd then s.wd:Destroy() s.wd = nil end end) s.ena = false s.hse = true s.kse = true s.esp = false s.espr = false s.espn = "ragebotesp" s.eg = Color3.fromRGB(0, 255, 0) s.er = Color3.fromRGB(255, 0, 0) s.bea = true s.lb = 0 s.kt = {} s.ft = false s.tp = nil s.tn = nil s.tnih = false s.hb = false s.wea = false s.wd = nil s.wt = nil s.wds = nil s.wr = nil s.we = nil s.ait = nil s.aiu = 0 s.aih = false s.twl = 0 s.ar = nil s.dn = CFrame.new(0, -0.5, 0) * CFrame.Angles(1.5707963267948966, 3.141592653589793, 0) s.dnci = s.dn:Inverse() s.ahs = s.dn * CFrame.Angles(math.pi, 0, 0) s.ap = nil s.apc = nil s.eq = true s.de = false s.bk = 0 s.cur = nil s.cat = nil s.cac = nil s.nt = nil s.ef = function() s.hcm() if s.tp then s.tp:Disconnect() end s.tp = s.run.RenderStepped:Connect(function() if s.lp then s.lp.CameraMode = Enum.CameraMode.Classic if s.lp.CameraMinZoomDistance < 3 then s.lp.CameraMinZoomDistance = 3 end end end) end s.df = function() if s.tp then s.tp:Disconnect() s.tp = nil end if s.lp then s.lp.CameraMinZoomDistance = 0.5 end end s.hcm = function() if s.tnih then return end if type(hookmetamethod) ~= "function" then return end local ok = pcall(function() local hf = function(sel, ke, val) if ke == "CameraMode" and s.ft and val ~= Enum.CameraMode.Classic then return s.tn(sel, ke, Enum.CameraMode.Classic) end return s.tn(sel, ke, val) end if type(newcclosure) == "function" then hf = newcclosure(hf) end s.tn = hookmetamethod(s.lp, "__newindex", hf) end) if ok and s.tn then s.tnih = true end end s.gn = function() local ch = s.lp.Character if not ch then return nil end local tor = ch:FindFirstChild("Torso") or ch:FindFirstChild("UpperTorso") if not tor then return nil end local ne = tor:FindFirstChild("Neck") if ne and ne:IsA("Motor6D") then return ne end return nil end s.ga = function() local ch = s.lp.Character if not ch then s.ap = nil s.apc = nil return nil end if s.apc == ch and s.ap then return s.ap end local tor = ch:FindFirstChild("Torso") or ch:FindFirstChild("UpperTorso") local he = ch:FindFirstChild("Head") local hu = ch:FindFirstChildOfClass("Humanoid") local ro = ch:FindFirstChild("HumanoidRootPart") local ne = s.gn() if not tor or not he or not hu or not ro or not ne then s.ap = nil s.apc = nil return nil end s.ap = { tor = tor, he = he, hu = hu, ro = ro, ne = ne } s.apc = ch return s.ap end s.gl = function(tap) local aa = s.ga() if not aa or aa.hu.Health <= 0 then return nil end local jo = aa.tor.CFrame * aa.ne.C0 local nh = (jo * s.dnci).Position if (tap - nh).Magnitude < 0.1 then return nil end local des = CFrame.lookAt(nh, tap) return des:Inverse() * jo end s.aap = function() local aa = s.ga() local ca = workspace.CurrentCamera local tp = false if s.lp and s.lp.CameraMode == Enum.CameraMode.Classic and ca and aa and aa.he then tp = (ca.CFrame.Position - aa.he.Position).Magnitude >= 2 end if s.hb then local now = os.clock() if now - s.twl >= 0.05 then s.twl = now if ca then pcall(function() s.HeadRotEvent:FireServer(s.ahs, ca.CFrame, os.clock()) end) end end if tp and aa and aa.ne then aa.ne.C1 = s.ahs end end if not s.hb or not s.ft or s.ait == nil or os.clock() >= s.aiu then if s.aih then s.aih = false local ch = s.lp.Character local hu = ch and ch:FindFirstChildOfClass("Humanoid") or nil if hu then hu.AutoRotate = true end if s.ar ~= nil then local ro = ch and ch:FindFirstChild("HumanoidRootPart") or nil if ro then local sr = s.ar - s.ar.Position ro.CFrame = CFrame.new(ro.Position) * sr end s.ar = nil end end return end if not aa or aa.hu.Health <= 0 then return end local lc = s.gl(s.ait) if lc then aa.ne.C1 = lc end end s.eai = function() s.run:BindToRenderStep("ragebothead", Enum.RenderPriority.Last.Value + 100, function() s.aap() end) end s.da = function() pcall(function() s.run:UnbindFromRenderStep("ragebothead") end) if s.aih then s.aih = false local ch = s.lp.Character local hu = ch and ch:FindFirstChildOfClass("Humanoid") or nil if hu then pcall(function() hu.AutoRotate = true end) end if s.ar ~= nil then local ro = ch and ch:FindFirstChild("HumanoidRootPart") or nil if ro then pcall(function() local sr = s.ar - s.ar.Position ro.CFrame = CFrame.new(ro.Position) * sr end) end s.ar = nil end end local ne = s.gn() if ne then pcall(function() ne.C1 = CFrame.new(0, -0.5, 0) * CFrame.Angles(1.5707963267948966, 3.141592653589793, 0) end) end end s.dw = function() if s.wd then pcall(function() s.wd:Destroy() end) s.wd = nil end s.wt = nil s.wds = nil s.wr = nil end s.gs = function(to) local ch = s.lp.Character if ch then local sm = ch:FindFirstChild("S" .. to.Name) if sm and sm:IsA("Model") then return sm end end local en = s.rep:FindFirstChild("ACS_Engine") local gm = en and en:FindFirstChild("GunModels") or nil local tem = gm and gm:FindFirstChild(to.Name) or nil if tem then return tem end return to end s.bw = function(to) s.dw() if not to then return end local sou = s.gs(to) local mo = Instance.new("Model") mo.Name = "WeaponDisplay" local pr = nil local hc = nil for u, pa in ipairs(sou:GetDescendants()) do if pa:IsA("BasePart") and pa.Transparency < 1 then local cl = pa:Clone() for u, chi in ipairs(cl:GetDescendants()) do if chi:IsA("LuaSourceContainer") or chi:IsA("Motor6D") or chi:IsA("Weld") or chi:IsA("WeldConstraint") then chi:Destroy() end end cl.Anchored = true cl.CanCollide = false cl.CanTouch = false cl.CanQuery = false cl.Massless = true cl.Parent = mo if pa.Name == "Handle" and hc == nil then hc = cl end if pr == nil then pr = cl end end end if pr == nil then mo:Destroy() return end mo.PrimaryPart = hc or pr mo.Parent = workspace pcall(function() mo:ScaleTo(1.8) end) local pi = mo:GetPivot() s.wd = mo s.wt = to s.wds = sou s.wr = pi - pi.Position end s.uw = function() if not s.wea then return end local ch = s.lp.Character local he = ch and ch:FindFirstChild("Head") or nil local hu = ch and ch:FindFirstChildOfClass("Humanoid") or nil if not he or not hu or hu.Health <= 0 then s.dw() return end local to = ch:FindFirstChildOfClass("Tool") if not to then s.dw() return end local sou = s.gs(to) if to ~= s.wt or sou ~= s.wds or not s.wd or not s.wd.Parent then s.bw(to) end if not s.wd or not s.wr then return end local po = he.Position + Vector3.new(0, 2.1, 0) + he.CFrame.LookVector * 0.5 local bb = -os.clock() * 1.5 pcall(function() s.wd:PivotTo(CFrame.new(po) * CFrame.Angles(0, bb, 0) * s.wr) end) end s.ew = function() if s.we then s.we:Disconnect() end s.we = s.run.RenderStepped:Connect(function() s.uw() end) end s.dd = function() if s.we then s.we:Disconnect() s.we = nil end s.dw() end local wu = loadstring(game:HttpGet("https://github.com/Footagesus/WindUI/releases/latest/download/main.lua"))() local wn = wu:CreateWindow({ Title = "idk", Folder = "ragebot", Icon = "bot", Theme = "Dark", NewElements = true, }) local tb = wn:Tab({ Title = "ragebot", Icon = "bot", }) s.bv = tb:Paragraph({ Title = "disabled", Desc = "", }) s.mai = tb:Toggle({ Title = "ragebot", Icon = "power", Value = false, Callback = function(val) if val and not s.sv then s.ena = false s.mai:Set(false) return end s.ena = val end, }) tb:Toggle({ Title = "hit sound", Icon = "volume-2", Value = true, Callback = function(val) s.hse = val end, }) tb:Toggle({ Title = "kill sound", Icon = "skull", Value = true, Callback = function(val) s.kse = val end, }) tb:Toggle({ Title = "tracers", Icon = "zap", Value = true, Callback = function(val) s.bea = val end, }) tb:Toggle({ Title = "third person", Icon = "camera", Value = false, Callback = function(val) s.ft = val if val then s.ef() else s.df() end end, }) tb:Toggle({ Title = "anti head shot", Icon = "shield", Value = false, Callback = function(val) s.hb = val if val then s.eai() else s.da() end end, }) tb:Toggle({ Title = "weapon display", Icon = "swords", Value = false, Callback = function(val) s.wea = val if val then s.ew() else s.dd() end end, }) tb:Toggle({ Title = "esp", Icon = "eye", Value = false, Callback = function(val) s.esp = val if val then s.espo() else s.espd() end end, }) s.lst = nil s.ss = function(tex) if s.lst ~= tex then s.lst = tex pcall(function() s.bv:SetTitle(tex) end) end end s.es = nil s.hg = nil s.hl = nil s.hpc = nil s.cv = function() if s.hpc then s.hpc:Disconnect() s.hpc = nil end if s.es then s.es:Destroy() s.es = nil end if s.hg then s.hg:Destroy() s.hg = nil s.hl = nil end end s.set = function(pl) if s.cur == pl and s.es and s.es.Parent then return end s.cv() s.cur = pl if not pl or not pl.Character then return end local ch = pl.Character local he = ch:FindFirstChild("Head") local hu = ch:FindFirstChildOfClass("Humanoid") if not he or not hu then return end s.es = Instance.new("Highlight") s.es.Name = "TargetESP" s.es.Adornee = ch s.es.FillColor = s.ec s.es.OutlineColor = s.ec s.es.FillTransparency = 0.65 s.es.OutlineTransparency = 0 s.es.DepthMode = Enum.HighlightDepthMode.Occluded s.es.Parent = ch s.hg = Instance.new("BillboardGui") s.hg.Name = "TargetHP" s.hg.Adornee = he s.hg.Size = UDim2.fromOffset(70, 22) s.hg.StudsOffsetWorldSpace = Vector3.new(0, 2.6, 0) s.hg.AlwaysOnTop = true s.hg.Parent = he s.hl = Instance.new("TextLabel") s.hl.Size = UDim2.fromScale(1, 1) s.hl.BackgroundTransparency = 1 s.hl.Font = Enum.Font.GothamBold s.hl.TextSize = 13 s.hl.TextColor3 = Color3.new(1, 1, 1) s.hl.TextStrokeTransparency = 0.5 s.hl.Text = tostring(math.floor(hu.Health + 0.5)) .. " / " .. tostring(math.floor(hu.MaxHealth + 0.5)) s.hl.Parent = s.hg s.hpc = hu.HealthChanged:Connect(function() if s.hl and hu.Parent then s.hl.Text = tostring(math.floor(hu.Health + 0.5)) .. " / " .. tostring(math.floor(hu.MaxHealth + 0.5)) end end) end s.ih = function(pl) local mt = s.lp.Team local te = pl.Team if te and te.Name == "Lobby" then return false end if mt and mt.Name == "Lobby" then return false end if s.tk then return true end if pl.Neutral then return true end if te == nil and mt == nil then return true end return te ~= mt end s.fin = function() local ca = workspace.CurrentCamera if not ca then return {} end local vp = ca.ViewportSize local cx = vp.X / 2 local cen = vp.Y / 2 local my = s.lp.Character local mr = my and my:FindFirstChild("HumanoidRootPart") or nil local li = {} for u, pl in ipairs(s.pla:GetPlayers()) do if pl ~= s.lp and s.ih(pl) then local ch = pl.Character local hu = ch and ch:FindFirstChildOfClass("Humanoid") or nil if hu and hu.Health > 0 and not ch:FindFirstChildOfClass("ForceField") then local he = ch:FindFirstChild("Head") local ro = ch:FindFirstChild("HumanoidRootPart") if he and ro then local scr = ca:WorldToScreenPoint(he.Position) local dx = scr.X - cx local dy = scr.Y - cen local scd = math.sqrt(dx * dx + dy * dy) local dis = 0 if mr then dis = (ro.Position - mr.Position).Magnitude end table.insert(li, { pl = pl, dis = dis, scn = scd }) end end end end table.sort(li, function(a, b) return a.scn < b.scn end) return li end s.espf = function() for u, pl in ipairs(s.pla:GetPlayers()) do if pl ~= s.lp then local ch = pl.Character local hu = ch and ch:FindFirstChildOfClass("Humanoid") or nil if hu and hu.Health > 0 then local co = s.ih(pl) and s.er or s.eg local hi = ch:FindFirstChild(s.espn) if not hi then hi = Instance.new("Highlight") hi.Name = s.espn hi.Adornee = ch hi.FillColor = co hi.OutlineColor = co hi.FillTransparency = 0.85 hi.OutlineTransparency = 0 hi.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop hi.Parent = ch elseif hi.FillColor ~= co or hi.OutlineColor ~= co or hi.FillTransparency ~= 0.85 or hi.OutlineTransparency ~= 0 or hi.DepthMode ~= Enum.HighlightDepthMode.AlwaysOnTop then hi.FillColor = co hi.OutlineColor = co hi.FillTransparency = 0.85 hi.OutlineTransparency = 0 hi.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop end end end end end s.espo = function() s.espf() if s.espr then return end s.espr = true task.spawn(function() while s.esp do task.wait(1) if s.esp then s.espf() end end s.espr = false end) end s.espd = function() s.esp = false for u, pl in ipairs(s.pla:GetPlayers()) do local ch = pl.Character if ch then local hi = ch:FindFirstChild(s.espn) if hi then hi:Destroy() end end end end s.fnt = function(co, na) if not co then return nil end for u, chi in ipairs(co:GetChildren()) do if chi:IsA("Tool") and chi.Name == na then return chi end end return nil end s.fg = function(co) if not co then return nil end for u, chi in ipairs(co:GetChildren()) do if chi:IsA("Tool") and chi:FindFirstChild("ACS_Settings") then return chi end end return nil end s.snn = function(na) if type(getnilinstances) ~= "function" then return nil end local ok, li = pcall(getnilinstances) if not ok or type(li) ~= "table" then return nil end for u, ob in ipairs(li) do if ob:IsA("Tool") and ob.Name == na then return ob end end return nil end s.sn = function() if type(getnilinstances) ~= "function" then return nil end local ok, li = pcall(getnilinstances) if not ok or type(li) ~= "table" then return nil end for u, ob in ipairs(li) do if ob:IsA("Tool") and ob:FindFirstChild("ACS_Settings") then return ob end end return nil end s.lo = function(to) local av = to:FindFirstChild("ACS_Settings") if not av then return nil end local ok, se = pcall(require, av) if ok and type(se) == "table" and se.Type == "Gun" then return se end return nil end s.wcc = nil s.wc = nil s.ws = nil s.wcuc = false s.gw = function() local ch = s.lp.Character if s.wcc == ch and s.wc and s.wc.Parent == ch then return s.wc, s.ws, s.wcuc end s.wcc = nil s.wc = nil s.ws = nil local ea = s.fg(ch) if ea then if ea.Name == s.cg then s.wcc = ch s.wc = ea s.ws = s.cs s.wcuc = true return ea, s.cs, true end local se = s.lo(ea) if se then s.cat = ea s.cac = se s.wcc = ch s.wc = ea s.ws = se s.wcuc = false return ea, se, false end return nil, nil, false end if s.eq then return nil, nil, false end local to = s.fnt(s.lp:FindFirstChild("Backpack"), s.cg) if not to then if s.nt and s.nt.Name == s.cg then to = s.nt else s.nt = s.snn(s.cg) to = s.nt end end if to then return to, s.cs, true end local an = s.fg(s.lp:FindFirstChild("Backpack")) if not an then an = s.sn() end if an then local se = s.lo(an) if se then s.cat = an s.cac = se return an, se, false end end return s.cat, s.cac, false end s.bct = nil s.bar = nil s.gbf = function(to, se) if s.bct == to and s.bar then return s.bar[1], s.bar[2] end local sup = false local fl = false if se.BarrelAtt and se.BarrelAtt ~= "" then local en = s.rep:FindFirstChild("ACS_Engine") local att = en and en:FindFirstChild("AttModules") or nil local mos = att and att:FindFirstChild(se.BarrelAtt) or nil if mos then local ok, ad = pcall(require, mos) if ok and type(ad) == "table" then sup = ad.IsSuppressor == true fl = ad.IsFlashHider == true end end end s.bct = to s.bar = { sup, fl } return sup, fl end s.mct = nil s.mch = nil s.mm = nil s.gem = function(to) if to then if s.mct ~= to then s.mct = to s.mch = to:FindFirstChild("Handle") s.mm = nil if s.mch then local mot = nil for u, chi in ipairs(s.mch:GetChildren()) do if chi.Name == "Muzzle" then if chi:IsA("BasePart") or chi:IsA("Attachment") then s.mm = chi break end if chi:IsA("Motor6D") then mot = chi end end end if not s.mm then s.mm = mot end end end if s.mm then if s.mm:IsA("BasePart") or s.mm:IsA("Attachment") then return s.mm.WorldCFrame.Position end if s.mm:IsA("Motor6D") then local al = s.mm.Part1 if al and al:IsA("BasePart") then return al.Position end end end if s.mch then return s.mch.Position end end local ca = workspace.CurrentCamera if ca then return ca.CFrame.Position end return Vector3.new(0, 0, 0) end s.zh = { Head = true } s.zt = { Torso = true, UpperTorso = true, LowerTorso = true } s.zl = { ["Right Arm"] = true, ["Left Arm"] = true, ["Right Leg"] = true, ["Left Leg"] = true, RightUpperArm = true, RightLowerArm = true, RightHand = true, LeftUpperArm = true, LeftLowerArm = true, LeftHand = true, RightUpperLeg = true, RightLowerLeg = true, RightFoot = true, LeftUpperLeg = true, LeftLowerLeg = true, LeftFoot = true } s.pn = { Top = true, Helmet = true, Up = true, Down = true, Face = true, Olho = true, Headset = true, Numero = true, Vest = true, Chest = true, Waist = true, Back = true, Belt = true, Leg1 = true, Leg2 = true, Arm1 = true, Arm2 = true } s.zon = function(pa) if s.zh[pa.Name] then return 1 elseif s.zt[pa.Name] then return 2 elseif s.zl[pa.Name] then return 3 end return nil end s.huo = function(pa) local anc = pa.Parent for u = 1, 3 do if not anc or anc == workspace then return nil end local hu = anc:FindFirstChildOfClass("Humanoid") if hu then return hu end anc = anc.Parent end return nil end s.pas = function(pa) if pa.Name == "Armor" or pa.Name == "EShield" then return false end local hu = s.huo(pa) if hu and hu.Health <= 0 then return true end if pa:FindFirstAncestor("Corpses") then return true end if s.zon(pa) and hu then return false end local ah = pa.Parent if ah and (ah:IsA("Accessory") or ah:IsA("Hat") or s.pn[ah.Name]) then return true end if hu then return true end if pa.Name == "Ignorable" or pa.Name == "Ignore" or pa.Transparency >= 1 or not pa.CanCollide then return true end return false end s.gp = function() if s.rp == nil then local par = RaycastParams.new() par.FilterType = Enum.RaycastFilterType.Exclude par.IgnoreWater = true s.rp = par end return s.rp end s.gr = function() local ch = s.lp.Character if not s.rac then local aw = workspace:FindFirstChild("ACS_WorkSpace") if aw then s.rc = aw:FindFirstChild("Client") s.ras = aw:FindFirstChild("Server") s.rac = true end end if s.rbc ~= ch or s.rb == nil then local bas = {} if ch then table.insert(bas, ch) end if s.rc then table.insert(bas, s.rc) end if s.ras then table.insert(bas, s.ras) end s.rb = bas s.rbc = ch end local fi = {} for i = 1, #s.rb do fi[i] = s.rb[i] end return fi end s.gso = function() local ca = workspace.CurrentCamera local my = s.lp.Character local he = my and my:FindFirstChild("Head") or nil if ca then local cp = ca.CFrame.Position if not he or (cp - he.Position).Magnitude >= 3 then if he then return he.Position end return cp end return cp end if he then return he.Position end return Vector3.new(0, 0, 0) end s.rh = function(ori, tch, hu) local he = tch:FindFirstChild("Head") if not he then return nil, nil, nil end local par = s.gp() local fi = s.gr() par.FilterDescendantsInstances = fi local fr = ori for u = 1, 8 do local re = workspace:Raycast(fr, he.Position - fr, par) if not re then return he.Position, 1, (ori - he.Position).Unit end local pa = re.Instance if not s.pas(pa) then local zo = s.zon(pa) local hih = s.huo(pa) if zo and hih and hih == hu then return re.Position, zo, re.Normal end return nil, nil, nil end table.insert(fi, pa) par.FilterDescendantsInstances = fi fr = re.Position end return nil, nil, nil end s.mcs = nil s.moc = nil s.bui = function(se) if s.mcs == se and s.moc then return s.moc end s.mcs = se s.moc = { SpreadRM = 1, RecoilPowerStepAmount = 1, Zoom2Value = se.Zoom2 or 70, MaxSpread = 1, MinRecoilPower = 1, DamageMod = 1, minDamageMod = 1, MaxRecoilPower = 1, AimInaccuracyStepAmount = 1, WalkMult = 1, AimRM = 1, gunRecoilMod = { RecoilRight = 1, RecoilUp = 1, RecoilTilt = 1, RecoilLeft = 1 }, MuzzleVelocity = 1, ZoomValue = se.Zoom or 70, MinSpread = 1, AimInaccuracyDecrease = 1, camRecoilMod = { RecoilRight = 1, RecoilTilt = 1, RecoilUp = 1, RecoilLeft = 1 }, adsTime = 1 } return s.moc end s.cy = Color3.fromRGB(0, 200, 255) s.db = Color3.fromRGB(30, 90, 255) s.ic = Color3.fromRGB(180, 230, 255) s.gchp = function() local mc = s.lp.Character if not mc then return nil end local mr = mc:FindFirstChild("HumanoidRootPart") if not mr then return nil end local clo, ay = nil, math.huge for u, pl in ipairs(s.pla:GetPlayers()) do if pl ~= s.lp then local cha = pl.Character if cha then local he = cha:FindFirstChild("Head") local hum = cha:FindFirstChildOfClass("Humanoid") if he and hum and hum.Health > 0 then local dis = (mr.Position - he.Position).Magnitude if dis < ay then ay = dis clo = he.Position end end end end end return clo end s.gwf = function(to, ld) local bp = nil local bd = -math.huge for u, pa in ipairs(to:GetDescendants()) do if pa:IsA("BasePart") then local d = pa.Position:Dot(ld) if d > bd then bd = d bp = pa end end end if not bp then return nil end local hal = 0.5 * (math.abs(ld:Dot(bp.CFrame.RightVector)) * bp.Size.X + math.abs(ld:Dot(bp.CFrame.UpVector)) * bp.Size.Y + math.abs(ld:Dot(bp.CFrame.LookVector)) * bp.Size.Z) return bp.Position + ld * hal end s.go = function() local cha = s.lp.Character if not cha then return nil end local to = cha:FindFirstChildOfClass("Tool") if to then local ro = cha:FindFirstChild("HumanoidRootPart") if ro then local fro = s.gwf(to, ro.CFrame.LookVector) if fro then return fro end end local mu = to:FindFirstChild("Muzzle", true) if mu and (mu:IsA("BasePart") or mu:IsA("Attachment")) then return mu.WorldCFrame.Position end local ha = to:FindFirstChild("Handle") if ha then return ha.Position end end local ro = cha:FindFirstChild("HumanoidRootPart") if ro then return ro.Position + ro.CFrame.LookVector * 1.2 + Vector3.new(0, 0.6, 0) end local ca = workspace.CurrentCamera if ca then return ca.CFrame.Position end return nil end s.gf = function() local cha = s.lp.Character if not cha then return nil end local ro = cha:FindFirstChild("HumanoidRootPart") if not ro then return nil end return ro.Position + ro.CFrame.LookVector * 25 + Vector3.new(0, 0.6, 0) end s.gb = function(ep) if ep then return ep end local hea = s.gchp() if hea then return hea end return s.gf() end s.ps = function(po) if not s.hsp or not s.hsp.Parent then local pa = Instance.new("Part") pa.Size = Vector3.new(0.1, 0.1, 0.1) pa.Transparency = 1 pa.CanCollide = false pa.Anchored = true pa.Position = po pa.Parent = Workspace local so = Instance.new("Sound") so.SoundId = "rbxassetid://17148249625" so.Volume = 1 so.Parent = pa s.hsp = pa s.hso = so end s.hsp.Position = po s.hso:Play() end s.pks = function(po) if not s.ks or not s.ks.Parent then local pa = Instance.new("Part") pa.Size = Vector3.new(0.1, 0.1, 0.1) pa.Transparency = 1 pa.CanCollide = false pa.Anchored = true pa.Position = po pa.Parent = Workspace local so = Instance.new("Sound") so.SoundId = "rbxassetid://95667959034001" so.Volume = 1 so.Parent = pa s.ks = pa s.ki = so end s.ks.Position = po s.ki:Play() end s.mak = function(bf, bg, wi, cos, tra, bu, tl) local be = Instance.new("Beam") be.Attachment0 = bf be.Attachment1 = bg be.Color = cos be.LightEmission = 0.35 be.LightInfluence = 0 be.Width0 = wi be.Width1 = wi be.FaceCamera = true be.Segments = 12 be.Texture = bu be.TextureMode = Enum.TextureMode.Wrap be.TextureSpeed = 3 be.TextureLength = tl be.Transparency = NumberSequence.new(tra) be.Parent = Workspace.Terrain return be end s.mb = function(po, siz, bi, tra) local ba = Instance.new("Part") ba.Size = Vector3.new(siz, siz, siz) ba.Shape = Enum.PartType.Ball ba.Material = Enum.Material.SmoothPlastic ba.Color = bi ba.Anchored = true ba.CanCollide = false ba.CanQuery = false ba.CanTouch = false ba.Transparency = tra ba.Position = po ba.Parent = Workspace return ba end s.cb = function(ep, sp) if not sp then sp = s.go() end if not sp then return end local fe = s.gb(ep) if not fe then return end local di = fe - sp if di.Magnitude < 0.001 then return end local du = di.Unit local har = math.abs(du.X) < 0.9 and Vector3.new(1, 0, 0) or Vector3.new(0, 1, 0) local het = du:Cross(har).Unit local bl = du:Cross(het).Unit local hel = 24 local htw = 2 local hr = 0.2 local function hep(fra, ph) local ang = fra * htw * math.pi * 2 + ph local r = hr * math.sin(math.pi * fra) return sp + di * fra + het * (math.cos(ang) * r) + bl * (math.sin(ang) * r) end local sa = {} local sb = {} for sd = 1, 2 do sa[sd] = {} sb[sd] = {} local ph = (sd - 1) * math.pi for i = 0, hel do local at = Instance.new("Attachment") at.WorldPosition = hep(i / hel, ph) at.Parent = Workspace.Terrain table.insert(sa[sd], at) end local col = sd == 1 and ColorSequence.new(s.cy, s.ic) or ColorSequence.new(s.az, s.cy) for i = 1, hel do local be = s.mak(sa[sd][i], sa[sd][i + 1], 1, col, 0.05, "rbxassetid://446111271", 0.6) be.LightEmission = 0.9 table.insert(sb[sd], be) end end local im = s.mb(fe, 0.35, s.db, 0) local arb = math.abs(du.X) < 0.9 and Vector3.new(1, 0, 0) or Vector3.new(0, 1, 0) local ac = du:Cross(arb).Unit local ae = du:Cross(ac).Unit for k = 0, 5 do local a = k * math.pi / 3 local spd = ac * math.cos(a) + ae * math.sin(a) local spa = s.mb(fe, 0.12, s.az, 0.2) local spe = fe + spd * 1.6 + du * 0.4 s.ts:Create(spa, TweenInfo.new(0.28, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { Position = spe, Transparency = 1 }):Play() task.delay(0.3, function() pcall(function() spa:Destroy() end) end) end for i = 1, 2 do task.spawn(function() task.wait((i - 1) * 0.07) local pu = s.mb(sp, 0.16, s.cy, 0.3) s.ts:Create(pu, TweenInfo.new(0.22, Enum.EasingStyle.Linear), { Position = fe, Transparency = 0.85 }):Play() task.wait(0.24) pcall(function() pu:Destroy() end) end) end local de = false local function dh() if de then return end de = true pcall(function() im:Destroy() end) for sd = 1, 2 do for u, be in ipairs(sb[sd]) do pcall(function() be:Destroy() end) end for u, at in ipairs(sa[sd]) do pcall(function() at:Destroy() end) end end end task.spawn(function() local rot = 0 local sta = os.clock() local las = sta while not de and os.clock() - sta < 2.5 do local now = os.clock() local dt = now - las las = now rot = rot + math.pi * 2 * dt / 0.9 for sd = 1, 2 do local ph = (sd - 1) * math.pi for i = 0, hel do local at = sa[sd][i + 1] if at and at.Parent then at.WorldPosition = hep(i / hel, ph + rot) end end end task.wait(0.05) end end) task.spawn(function() task.wait(2) local fd = 0.5 local fa = 0 while fa < fd do local dt = task.wait() fa = fa + dt local alp = math.clamp(fa / fd, 0, 1) for sd = 1, 2 do for u, be in ipairs(sb[sd]) do if be and be.Parent then be.Transparency = NumberSequence.new(alp) end end end if im and im.Parent then im.Transparency = alp end end dh() end) return dh end s.fire = function(ta, to, se, uc, hu, mu, ori, hp, zo, no) if not (s.ck and s.sv and s.cap == s.lp.Character) then return false end local ca = workspace.CurrentCamera local cam = ca and ca.CFrame or CFrame.new(mu) local cp = cam.Position if s.hb and s.ft and (hp - cp).Magnitude > 0.1 then local oa, aic = pcall(CFrame.lookAt, cp, hp) if oa and aic then cam = aic end end local sup, fl = s.gbf(to, se) pcall(function() s.Atirar:FireServer(to, sup, fl, cam, os.clock()) end) local ha = to:FindFirstChild("Handle") local cc = nil if ha then local ab = ha:FindFirstChild("Chamber") if ab and (ab:IsA("BasePart") or ab:IsA("Attachment")) then cc = ab.WorldCFrame elseif ab and ab:IsA("Motor6D") and ab.Part1 and ab.Part1:IsA("BasePart") then cc = ab.Part1.CFrame else cc = ha.CFrame end end if cc then pcall(function() s.Shell:FireServer(se.BulletType, cc, se.EjectionOverride) end) end local mod = uc and s.cmo or s.bui(se) if s.ServerBullet then local di = (hp - ori).Unit pcall(function() s.ServerBullet:FireServer(ori, di, se, mod) end) end local au = (hp - ori).Magnitude local fli = s.bul + au / s.bsp(se, mod) task.wait(fli) if not ta.Character or ta.Character:FindFirstChildOfClass("Humanoid") ~= hu then return false end if hu.Health <= 0 then return false end local he = ta.Character and ta.Character:FindFirstChild("Head") or nil if he then pcall(function() s.HitEffect:FireServer(hp, he, no, he.Material, se) end) end local ke = nil if s.ck and s.sv and s.cap == s.lp.Character then ke = s.ck end if not ke then return false end local ok = pcall(function() s.Damage:InvokeServer(to, hu, au, zo, se, mod, nil, nil, ke, hp) end) if ok then s.bk += 1 task.spawn(function() task.wait(0.1) local dea = false pcall(function() dea = hu.Health <= 0 end) if dea and s.kse then local now = os.clock() local lk = s.kt[ta] if not lk or now - lk >= 2 then s.kt[ta] = now local mc = s.lp.Character local mr = mc and mc:FindFirstChild("HumanoidRootPart") or nil s.pks(mr and mr.Position or hp) end end end) end return ok end s.ge = function() return s.fg(s.lp.Character) end s.fb = function() local pg = s.lp:FindFirstChildOfClass("PlayerGui") if not pg then return nil end local con = pg:FindFirstChild("MobileControls") if not con then return nil end local bt = con:FindFirstChild("Fire") if bt and bt:IsA("GuiButton") and bt.Visible and bt.AbsoluteSize.X > 0 then return bt end return nil end s.dg = getupvalue or (debug and debug.getupvalue) or nil s.bj = getupvalues or (debug and debug.getupvalues) or nil s.dge = getconnections or nil s.deg = getgc or nil s.deb = setupvalue or (debug and debug.setupvalue) or nil s.eu = function(fn, cal) if type(s.bj) == "function" then local ok, up = pcall(s.bj, fn) if ok and type(up) == "table" then for u, va in pairs(up) do cal(va) end return true end end if type(s.dg) == "function" then local i = 1 while true do local res = { pcall(s.dg, fn, i) } if not res[1] then return false end if res[2] == nil and res[3] == nil then return true end local va if res[3] ~= nil then va = res[3] elseif type(res[2]) == "string" then va = nil else va = res[2] end cal(va) i = i + 1 end end return false end s.ff = function(fn, dep) local fo = nil s.eu(fn, function(va) if fo then return end if type(va) == "table" and type(va.Action) == "function" then fo = va.Action elseif type(va) == "function" and dep < 2 then fo = s.ff(va, dep + 1) end end) return fo end s.fir = nil s.fac = nil s.fat = nil s.fc = false s.fara = 0 s.gfa = function() local ch = s.lp.Character local to = s.ge() if ch ~= s.fac or to ~= s.fat then s.fir = nil s.fac = ch s.fat = to s.fc = false end if s.fc then if s.fir then return s.fir end if os.clock() < s.fara then return nil end s.fc = false end s.fc = true s.fara = os.clock() + 1 local bt = s.fb() if bt and type(s.dge) == "function" then local ok, aq = pcall(s.dge, bt.InputBegan) if ok and type(aq) == "table" then for u, conn in ipairs(aq) do local fn = conn and conn.Function or nil if type(fn) == "function" then local ag = s.ff(fn, 0) if ag then s.fir = ag return s.fir end end end end end if type(s.deg) == "function" then if s.fas then return nil end local mh = ch and ch:FindFirstChildOfClass("Humanoid") or nil local ok, obj = pcall(s.deg, true) if ok and type(obj) == "table" then s.fas = true for idx, ob in ipairs(obj) do if idx % 200 == 0 then task.wait() end if type(ob) == "table" and type(ob.Action) == "function" and type(ob.State) == "function" and mh and ob.Humanoid == mh then local oks, br = pcall(ob.State) if oks and type(br) == "table" then s.fir = ob.Action s.fas = false return s.fir end end end s.fas = false end end return nil end s.rea = function(fn, idx) if type(s.dg) ~= "function" then return nil end local ok, na, va = pcall(s.dg, fn, idx) if ok and na ~= nil then return va end return nil end s.rf = function() if not s.af or not s.ai or not s.as then return nil, nil end local ma = s.rea(s.af, s.ai) local st = s.rea(s.af, s.as) if type(ma) ~= "number" or type(st) ~= "number" then return nil, nil end return ma, st end s.wm = function(val) if not s.af or not s.ai or type(s.deb) ~= "function" then return false end local ok = pcall(s.deb, s.af, s.ai, val) if not ok then return false end return s.rea(s.af, s.ai) == val end s.wf = function(ma, st) if not s.af or not s.ai or not s.as or type(s.deb) ~= "function" then return false end local bo = pcall(s.deb, s.af, s.ai, ma) local bq = pcall(s.deb, s.af, s.as, st) if not bo or not bq then return false end local bm, bs = s.rf() return bm == ma and bs == st end s.ir = function(to, se) if not to or not se then return false end if s.af == nil or s.act ~= to or s.acc ~= s.lp.Character then return false end local am = tonumber(se.Ammo) if not am or am <= 0 then return false end local ma, st = s.rf() if ma == nil or st == nil then ma = s.dm st = s.ds end if ma == nil or st == nil or st <= 0 then return false end local bh = se.IncludeChamberedBullet == true local nm = nil local ns = nil if ma - (am - st) < 0 then nm = ma + st ns = 0 elseif ma <= 0 then ns = st - (am - ma) nm = am elseif ma > 0 and bh then ns = st - (am - ma) - 1 nm = am + 1 else ns = st - (am - ma) nm = am end if ns < 0 then ns = 0 end if nm < 0 then nm = 0 end if not s.wf(nm, ns) then return false end s.dm = nm s.ds = ns s.sht(nm, ns) return true end s.sht = function(ma, st) local la = s.htl if not la or not la.Parent then local pg = s.lp:FindFirstChildOfClass("PlayerGui") local su = pg and pg:FindFirstChild("StatusUI") or nil local gh = su and su:FindFirstChild("GunHUD") or nil la = gh and gh:FindFirstChild("SAText") or nil s.htl = la end if la then pcall(function() la.Text = tostring(ma) .. " / " .. tostring(st) end) end end s.fia = function(to, hm, hs) if s.acb then return false end if type(s.deb) ~= "function" or type(s.dg) ~= "function" or type(s.deg) ~= "function" then s.acb = true return false end if hm == nil or hs == nil or hm == hs then return false end local ch = s.lp.Character if s.af and s.act == to and s.acc == ch and s.ai and s.as then return true end if s.amm then return false end if os.clock() < s.asra then return false end s.af = nil s.ai = nil s.as = nil s.act = nil s.acc = nil s.amm = true local sca = to local scc = ch local scm = hm local scs = hs task.spawn(function() local abo = false local ok, obj = pcall(s.deg, true) if ok and type(obj) == "table" then for idx, ob in ipairs(obj) do if idx % 200 == 0 then task.wait() if s.lp.Character ~= scc then abo = true break end if s.ge() ~= sca then abo = true break end end if type(ob) == "function" then local mag = 0 local sto = 0 local mi = nil local si = nil local ht = false local sk = false local i = 1 while true do local ou, na, va = pcall(s.dg, ob, i) if not ou or na == nil then break end if na == "S" then sk = true break end if va == sca then ht = true end if type(va) == "number" and va == scm then mag = mag + 1 if mi == nil then mi = i end end if type(va) == "number" and va == scs then sto = sto + 1 if si == nil then si = i end end i = i + 1 end if not sk and ht and mag == 1 and sto == 1 and mi ~= si then if s.lp.Character == scc and s.ge() == sca then s.af = ob s.ai = mi s.as = si s.act = sca s.acc = scc end s.amm = false return end end end end if abo then s.asra = 0 else s.asra = os.clock() + 10 end s.amm = false end) return false end s.tf = function(to, hm, hs) local ch = s.lp.Character if s.af and s.act == to and s.acc == ch and s.ai and s.as then return s.rf() end if hm == nil or hs == nil then return nil, nil end if s.fia(to, hm, hs) then return s.rf() end return nil, nil end s.cr = function(to) if s.dm == nil or s.dm <= 0 then return end local fm = nil local fs = nil if s.af and s.act == to and s.acc == s.lp.Character then fm, fs = s.rf() end if fm ~= nil then local nm = fm - 1 if nm < 0 then nm = 0 end if s.wm(nm) then s.dm = nm s.ds = fs s.sht(nm, fs) return end s.af = nil s.ai = nil s.as = nil s.act = nil s.acc = nil end s.dm = s.dm - 1 end s.rt = function(to, hm, hs) if not to then s.dm = nil s.ds = nil s.dit = nil s.af = nil s.ai = nil s.as = nil s.act = nil s.acc = nil s.adc = 0 return end local ch = s.lp.Character if to ~= s.dit or s.dm == nil or ch ~= s.acc then s.dit = to s.acc = ch s.adc = 0 local fm, fs = s.tf(to, hm, hs) if fm ~= nil then s.dm = fm s.ds = fs else s.dm = hm s.ds = hs end return end local fm, fs = s.tf(to, hm, hs) if fm ~= nil then if hm ~= nil and hs ~= nil and (fm ~= hm or fs ~= hs) then s.adc = s.adc + 1 if s.adc >= 2 then s.af = nil s.ai = nil s.as = nil s.act = nil s.acc = nil s.adc = 0 s.dm = hm s.ds = hs end else s.adc = 0 s.dm = fm s.ds = fs end return end if hs ~= nil and s.ds ~= nil and hs ~= s.ds then s.dm = hm s.ds = hs end end s.get = function() local pg = s.lp:FindFirstChildOfClass("PlayerGui") if not pg then return nil, nil end local su = pg:FindFirstChild("StatusUI") if not su then return nil, nil end local gh = su:FindFirstChild("GunHUD") if not gh then return nil, nil end local sat = gh:FindFirstChild("SAText") if not sat or type(sat.Text) ~= "string" then return nil, nil end local ms, sts = sat.Text:match("^(%d+)%s*/%s*(%d+)$") if not ms then return nil, nil end return tonumber(ms), tonumber(sts) end s.tcb = function(bn) if not s.vi then return false end local pg = s.lp:FindFirstChildOfClass("PlayerGui") if not pg then return false end local con = pg:FindFirstChild("MobileControls") if not con then return false end local bt = con:FindFirstChild(bn) if not bt or not bt:IsA("GuiButton") or not bt.Visible or bt.AbsoluteSize.X <= 0 then return false end local ce = bt.AbsolutePosition + bt.AbsoluteSize / 2 local x = math.floor(ce.X) local y = math.floor(ce.Y) local ok = pcall(function() s.vi:SendTouchEvent(x, y, 0, true, game) end) if not ok then return false end task.wait(0.05) pcall(function() s.vi:SendTouchEvent(x, y, 0, false, game) end) return true end s.tri = function() local ag = s.gfa() if ag then local ok = pcall(ag, "Reload", Enum.UserInputState.Begin, nil) if ok then return true end end return s.tcb("Reload") end s.rel = false s.rs = nil s.rst = function(ma, st, to, se) if s.rel and s.rs and os.clock() - s.rs > 2 then s.rel = false s.rs = nil end if ma ~= nil and ma <= 0 and st ~= nil and st > 0 then if s.ir(to, se) then s.rel = false s.rs = nil return end if not s.rel then s.rel = true s.rs = os.clock() task.spawn(s.tri) end end if ma ~= nil and ma > 0 then s.rel = false s.rs = nil end end s.ls = 0 s.had = false s.pmt = nil s.pm = nil s.sci = 0.03 task.spawn(function() while not s.de do if s.ena then if not s.sv then s.ena = false pcall(function() s.mai:Set(false) end) end local tar = s.fin() local fit = tar[1] and tar[1].pl or nil s.set(fit) if #tar == 0 then s.had = false if s.rel then s.ss("reloading") else s.ss("no targets") end else if not s.had then s.ls = 0 end s.had = true local to, se, uc = s.gw() if not to or not se then s.rel = false s.rs = nil s.ss("no weapon equipped") else if s.lt ~= nil and to ~= s.lt then s.np = true s.pt = to s.ls = os.clock() s.rel = false s.rs = nil end s.lt = to if s.np and s.mst == to then s.np = false s.pt = nil end local ka = s.ck ~= nil and s.sv and s.cap == s.lp.Character local fii = s.gi(se) if s.np then s.ss("switched weapon, fire one shot with the new gun") elseif not ka then if s.aj then s.ss("enabling third person and anti head shot may get you kicked, these features are actually useless and just for showing off, if you only want the main feature just turn on ragebot, only enable ragebot during a match, it will not work in the lobby, and you must turn it on manually every time you join a match, if you join the game already in a match, fire one shot first, then enable it, if it still will not enable, fire a few more shots or rejoin the server") elseif s.cf then s.ss("enabling third person and anti head shot may get you kicked, these features are actually useless and just for showing off, if you only want the main feature just turn on ragebot, only enable ragebot during a match, it will not work in the lobby, and you must turn it on manually every time you join a match, if you join the game already in a match, fire one shot first, then enable it, if it still will not enable, fire a few more shots or rejoin the server") else s.ss("enabling third person and anti head shot may get you kicked, these features are actually useless and just for showing off, if you only want the main feature just turn on ragebot, only enable ragebot during a match, it will not work in the lobby, and you must turn it on manually every time you join a match, if you join the game already in a match, fire one shot first, then enable it, if it still will not enable, fire a few more shots or rejoin the server") end elseif os.clock() - s.ls >= fii then s.ls = os.clock() local mu = s.gem(to) local ori = s.gso() local hit = 0 local bc = 0 local fh = nil local tco = #tar if tco > 0 then if s.tac == nil or s.tac < 1 or s.tac > tco then s.tac = 1 end local ent = tar[s.tac] local ta = ent.pl local ch = ta.Character local he = ch and ch:FindFirstChild("Head") or nil local hu = ch and ch:FindFirstChildOfClass("Humanoid") or nil if s.hb and s.ft and he and hu and hu.Health > 0 then s.ait = he.Position s.aiu = os.clock() + 0.05 local mc = s.lp.Character local mh = mc and mc:FindFirstChildOfClass("Humanoid") or nil local mr = mc and mc:FindFirstChild("HumanoidRootPart") or nil if mh and mr and mh.Health > 0 then mh.AutoRotate = false s.aih = true if s.ar == nil then s.ar = mr.CFrame end local po = mr.Position local fla = Vector3.new(he.Position.X, po.Y, he.Position.Z) if (fla - po).Magnitude > 0.1 then mr.CFrame = CFrame.lookAt(po, fla) end end end if he and hu and hu.Health > 0 then local hp, zo, no = s.rh(ori, ch, hu) if hp then hit = 1 fh = hp task.spawn(s.fire, ta, to, se, uc, hu, mu, ori, hp, zo, no) else bc = 1 end else bc = 1 end s.tac = s.tac + 1 if s.tac > tco then s.tac = 1 end end if fh then if s.bea and os.clock() - s.lb >= 0.5 then s.lb = os.clock() s.cb(fh) end if s.hse then s.ps(fh) end end if hit > 0 then local rpm = math.floor(60 / fii + 0.5) s.ss("attacking " .. tostring(hit) .. " target, " .. tostring(math.floor(rpm + 0.5)) .. " rpm, " .. tostring(s.bk) .. " shots fired") elseif bc > 0 then s.ss("target blocked by wall") else s.ss("no targets") end end end end task.wait(s.sci) else s.set(nil) if not s.sv then local ct = s.gw() if ct then local cm = s.get() if s.pmt == ct and s.pm ~= nil and cm ~= nil and cm < s.pm then s.shs = true s.cf = false s.atc() end s.pmt = ct s.pm = cm else s.pmt = nil s.pm = nil end if s.mai.Value then pcall(function() s.mai:Set(false) end) end if s.aj then s.ss("enabling third person and anti head shot may get you kicked, these features are actually useless and just for showing off, if you only want the main feature just turn on ragebot, only enable ragebot during a match, it will not work in the lobby, and you must turn it on manually every time you join a match, if you join the game already in a match, fire one shot first, then enable it, if it still will not enable, fire a few more shots or rejoin the server") elseif s.cf then s.ss("enabling third person and anti head shot may get you kicked, these features are actually useless and just for showing off, if you only want the main feature just turn on ragebot, only enable ragebot during a match, it will not work in the lobby, and you must turn it on manually every time you join a match, if you join the game already in a match, fire one shot first, then enable it, if it still will not enable, fire a few more shots or rejoin the server") else s.ss("enabling third person and anti head shot may get you kicked, these features are actually useless and just for showing off, if you only want the main feature just turn on ragebot, only enable ragebot during a match, it will not work in the lobby, and you must turn it on manually every time you join a match, if you join the game already in a match, fire one shot first, then enable it, if it still will not enable, fire a few more shots or rejoin the server") end else s.ss("disabled") end task.wait(0.3) end end end)