local Players = game:GetService("Players") local RS = game:GetService("ReplicatedStorage") local WS = game:GetService("Workspace") local UIS = game:GetService("UserInputService") local RunService = game:GetService("RunService") local LP = Players.LocalPlayer local C = { baseRange = 20, maxRange = 100, safetyT = 0.16, baseClick = 4, maxClick = 16, clickScl = 0.03, dot = 0.1, panic = 5, key = Enum.KeyCode.E, } local function getRemote() local r = RS:FindFirstChild("Remotes") if r then for _, n in ipairs({"Deflect","ReqDef","Parry","Block"}) do local o = r:FindFirstChild(n) if o and o:IsA("RemoteEvent") then return o end end end for _, d in ipairs(RS:GetDescendants()) do if d:IsA("RemoteEvent") then local s = d.Name:lower() if s:find("deflect") or s:find("reqdef") or s:find("parr") then return d end end end end local parry = getRemote() local hmc = typeof(mouse1click) == "function" local hmp = typeof(mouse1press) == "function" and typeof(mouse1release) == "function" local hma = typeof(mousemoveabs) == "function" local hmr = typeof(mousemoverel) == "function" local hkp = typeof(keypress) == "function" local hkr = typeof(keyrelease) == "function" local mon = { spd = 0, rng = C.baseRange, clk = C.baseClick, dst = math.huge, app = false, } local mPos, mTick = nil, nil local smoothSpd = 0 task.spawn(function() while true do task.wait(0.05) local ball = WS:FindFirstChild("GameBall") local char = LP.Character local root = char and char:FindFirstChild("HumanoidRootPart") if not ball or not ball:IsA("BasePart") or not root then mPos, mTick = nil, nil smoothSpd = 0 mon.spd = 0 mon.rng = C.baseRange mon.clk = C.baseClick mon.dst = math.huge mon.app = false continue end local now = tick() local bp = ball.Position local rp = root.Position local vec = bp - rp local dist = vec.Magnitude local app = false local inst = 0 if mPos and mTick then local dt = now - mTick if dt > 0.001 then local dv = bp - mPos inst = dv.Magnitude / dt if dv.Magnitude > 0.05 and dist > 0.1 then app = -(vec.Unit):Dot(dv.Unit) > C.dot end end end mPos, mTick = bp, now smoothSpd = smoothSpd * 0.7 + inst * 0.3 local rng = smoothSpd * C.safetyT if rng < C.baseRange then rng = C.baseRange end if rng > C.maxRange then rng = C.maxRange end local clk = math.floor(C.baseClick + smoothSpd * C.clickScl + 0.5) if clk < C.baseClick then clk = C.baseClick end if clk > C.maxClick then clk = C.maxClick end mon.spd = smoothSpd mon.rng = rng mon.clk = clk mon.dst = dist mon.app = app end end) local function isRed() local char = LP.Character if char then local hl = char:FindFirstChildOfClass("Highlight") if hl and hl.Enabled then return true end for _, a in ipairs({"isTarget","Targeted","isTargeted","HasBall","IsTarget"}) do if char:GetAttribute(a) == true then return true end end end local phl = LP:FindFirstChildOfClass("Highlight") if phl and phl.Enabled then return true end for _, a in ipairs({"isTarget","Targeted","isTargeted","HasBall","IsTarget"}) do if LP:GetAttribute(a) == true then return true end end return false end local function fireOne() if parry then pcall(function() parry:FireServer() end) end if hkp then pcall(keypress, C.key) if hkr then task.delay(0.003, function() pcall(keyrelease, C.key) end) end end local cam = WS.CurrentCamera local ball = WS:FindFirstChild("GameBall") if cam and ball and ball:IsA("BasePart") then local sp, on = cam:WorldToViewportPoint(ball.Position) if on then if hma then pcall(mousemoveabs, math.floor(sp.X), math.floor(sp.Y)) elseif hmr then local cur = UIS:GetMouseLocation() pcall(mousemoverel, math.floor(sp.X - cur.X), math.floor(sp.Y - cur.Y)) end end end if hmp then pcall(mouse1press) task.delay(0.003, function() pcall(mouse1release) end) elseif hmc then pcall(mouse1click) end end local locked = false local function lockMove(s) if s == locked then return end locked = s local char = LP.Character local hum = char and char:FindFirstChildOfClass("Humanoid") if not hum then return end if s then pcall(function() hum:Move(Vector3.zero, false) hum.WalkSpeed = 0 hum.JumpPower = 0 end) else pcall(function() hum.WalkSpeed = 16 hum.JumpPower = 50 end) end end RunService.RenderStepped:Connect(function() local char = LP.Character local root = char and char:FindFirstChild("HumanoidRootPart") if not root then lockMove(false); return end if mon.dst == math.huge then lockMove(false); return end local hit = mon.dst <= mon.rng and mon.app and isRed() local pnk = mon.dst <= C.panic if not (hit or pnk) then lockMove(false) return end lockMove(true) local n = pnk and mon.clk * 2 or mon.clk for _ = 1, n do fireOne() end end) LP.CharacterAdded:Connect(function() lockMove(false) end)