-- Delta JJS Custom-Target Auto Play Matrix local Players = game:GetService("Players") local RunService = game:GetService("RunService") local VIM = game:GetService("VirtualInputManager") local LocalPlayer = Players.LocalPlayer -- --- CONFIGURATION / STATE --- local State = { Enabled = false, TargetInput = "", -- What you type in the UI ActualTarget = nil, -- The locked Player instance Height = 4, Speed = 12, Distance = 8, AutoM1 = true, AutoAbilities = true } local LoopConnection = nil local CombatKeys = {Enum.KeyCode.One, Enum.KeyCode.Two, Enum.KeyCode.Three, Enum.KeyCode.Four} -- --- TARGET RESOLVER ENGINE --- local function updateSelectedTarget() if State.TargetInput == "" then State.ActualTarget = nil return end local lowerInput = string.lower(State.TargetInput) -- Check for exact or partial name matches in the server for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer then local lowerName = string.lower(player.Name) local lowerDisplay = string.lower(player.DisplayName) if string.find(lowerName, lowerInput) or string.find(lowerDisplay, lowerInput) then State.ActualTarget = player return end end end State.ActualTarget = nil end -- --- HARDWARE INPUT SIMULATORS --- local function fireM1() VIM:SendMouseButtonEvent(0, 0, 0, true, game, 0) task.wait(0.05) VIM:SendMouseButtonEvent(0, 0, 0, false, game, 0) end local function fireAbilities() for _, key in ipairs(CombatKeys) do VIM:SendKeyEvent(true, key, false, game) task.wait(0.02) VIM:SendKeyEvent(false, key, false, game) end end -- --- MAIN CORE ENGINE --- local function startCombatLoop() if LoopConnection then LoopConnection:Disconnect() end local startTime = os.clock() local m1Timer = 0 local abilityTimer = 0 LoopConnection = RunService.Heartbeat:Connect(function(deltaTime) if not State.Enabled then return end -- Self Verification local myChar = LocalPlayer.Character local myRoot = myChar and myChar:FindFirstChild("HumanoidRootPart") local myHumanoid = myChar and myChar:FindFirstChildOfClass("Humanoid") if not myRoot or (myHumanoid and myHumanoid.Health <= 0) then return end -- Continually verify target validity (in case they leave/rejoin or respawn) updateSelectedTarget() local target = State.ActualTarget if not target or not target.Character or not target.Character:FindFirstChild("HumanoidRootPart") then return end local targetHumanoid = target.Character:FindFirstChildOfClass("Humanoid") if targetHumanoid and targetHumanoid.Health <= 0 then return -- Wait until they respawn to continue attacking end local targetRoot = target.Character.HumanoidRootPart local timePassed = os.clock() - startTime -- 1. BACK & FORTH ORBIT VECTOR MATRICES local cycle = math.sin(timePassed * State.Speed) local currentDistance = cycle * State.Distance local targetPos = targetRoot.Position local lookDirection = targetRoot.CFrame.LookVector local desiredPosition = targetPos - (lookDirection * currentDistance) + Vector3.new(0, State.Height, 0) myRoot.CFrame = CFrame.new(desiredPosition, targetPos) -- 2. AUTOMATED ATTACK TIMERS m1Timer = m1Timer + deltaTime abilityTimer = abilityTimer + deltaTime if State.AutoM1 and m1Timer >= 0.25 then fireM1() m1Timer = 0 end if State.AutoAbilities and abilityTimer >= 1.5 then fireAbilities() abilityTimer = 0 end end) end local function stopCombatLoop() if LoopConnection then LoopConnection:Disconnect() LoopConnection = nil end end -- --- PRO MODERN GUI PANEL --- local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "DeltaProJJSUI" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = game:GetService("CoreGui") local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0, 320, 0, 440) MainFrame.Position = UDim2.new(0.5, -160, 0.3, -220) MainFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 22) MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Draggable = true MainFrame.Parent = ScreenGui local MainCorner = Instance.new("UICorner") MainCorner.CornerRadius = UDim.new(0, 12) MainCorner.Parent = MainFrame local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, 0, 0, 45) Title.BackgroundColor3 = Color3.fromRGB(24, 24, 37) Title.Text = "JJS TARGET AUTO-PLAY" Title.TextColor3 = Color3.fromRGB(180, 140, 255) Title.Font = Enum.Font.GothamBold Title.TextSize = 14 Title.Parent = MainFrame local TitleCorner = Instance.new("UICorner") TitleCorner.CornerRadius = UDim.new(0, 12) TitleCorner.Parent = Title local ListLayout = Instance.new("UIListLayout") ListLayout.Padding = UDim.new(0, 8) ListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center ListLayout.SortOrder = Enum.SortOrder.LayoutOrder ListLayout.Parent = MainFrame local Spacer = Instance.new("Frame") Spacer.Size = UDim2.new(1, 0, 0, 45) Spacer.BackgroundTransparency = 1 Spacer.LayoutOrder = 0 Spacer.Parent = MainFrame local function createTextBox(placeholder, order, callback) local box = Instance.new("TextBox") box.Size = UDim2.new(0, 280, 0, 35) box.BackgroundColor3 = Color3.fromRGB(30, 30, 46) box.TextColor3 = Color3.fromRGB(255, 255, 255) box.PlaceholderText = placeholder box.PlaceholderColor3 = Color3.fromRGB(110, 110, 130) box.Font = Enum.Font.Gotham box.TextSize = 12 box.Text = "" box.LayoutOrder = order box.Parent = MainFrame local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 6) corner.Parent = box box.FocusLost:Connect(function() callback(box.Text) end) return box end local function createToggle(text, order, default, callback) local btn = Instance.new("TextButton") btn.Size = UDim2.new(0, 280, 0, 35) btn.BackgroundColor3 = default and Color3.fromRGB(70, 150, 70) or Color3.fromRGB(45, 45, 60) btn.Text = text .. (default and ": ON" or ": OFF") btn.TextColor3 = Color3.fromRGB(255, 255, 255) btn.Font = Enum.Font.GothamBold btn.TextSize = 12 btn.LayoutOrder = order btn.Parent = MainFrame local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 6) corner.Parent = btn local state = default btn.MouseButton1Click:Connect(function() state = not state btn.BackgroundColor3 = state and Color3.fromRGB(70, 150, 70) or Color3.fromRGB(45, 45, 60) btn.Text = text .. (state and ": ON" or ": OFF") callback(state) end) end -- Render Components local targetDisplayLabel = Instance.new("TextLabel") targetDisplayLabel.Size = UDim2.new(0, 280, 0, 20) targetDisplayLabel.BackgroundTransparency = 1 targetDisplayLabel.Text = "Target Locked: None" targetDisplayLabel.TextColor3 = Color3.fromRGB(255, 100, 100) targetDisplayLabel.Font = Enum.Font.GothamSemibold targetDisplayLabel.TextSize = 11 targetDisplayLabel.LayoutOrder = 1 targetDisplayLabel.Parent = MainFrame createTextBox("Type Selected Target Name/Display", 2, function(text) State.TargetInput = text updateSelectedTarget() if State.ActualTarget then targetDisplayLabel.Text = "Target Locked: " .. State.ActualTarget.Name targetDisplayLabel.TextColor3 = Color3.fromRGB(100, 255, 100) else targetDisplayLabel.Text = "Target Locked: None (Not Found)" targetDisplayLabel.TextColor3 = Color3.fromRGB(255, 100, 100) end end) createTextBox("Attack Height (Default: 4)", 3, function(text) State.Height = tonumber(text) or 4 end) createTextBox("Attack Speed (Default: 12)", 4, function(text) State.Speed = tonumber(text) or 12 end) createTextBox("Swing Radius Distance (Default: 8)", 5, function(text) State.Distance = tonumber(text) or 8 end) createToggle("Auto Punch Combo (M1)", 6, true, function(val) State.AutoM1 = val end) createToggle("Auto Ability Cycle (1-4)", 7, true, function(val) State.AutoAbilities = val end) -- Master Ignition Toggle Button local ToggleButton = Instance.new("TextButton") ToggleButton.Size = UDim2.new(0, 280, 0, 45) ToggleButton.BackgroundColor3 = Color3.fromRGB(200, 60, 60) ToggleButton.Text = "START TARGET AUTO PLAY" ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) ToggleButton.Font = Enum.Font.GothamBold ToggleButton.TextSize = 13 ToggleButton.LayoutOrder = 8 ToggleButton.Parent = MainFrame local ButtonCorner = Instance.new("UICorner") ButtonCorner.CornerRadius = UDim.new(0, 6) ButtonCorner.Parent = ToggleButton ToggleButton.MouseButton1Click:Connect(function() State.Enabled = not State.Enabled if State.Enabled then ToggleButton.BackgroundColor3 = Color3.fromRGB(140, 90, 255) ToggleButton.Text = "TARGET PLAY ACTIVE" startCombatLoop() else ToggleButton.BackgroundColor3 = Color3.fromRGB(200, 60, 60) ToggleButton.Text = "START TARGET AUTO PLAY" stopCombatLoop() end end)