--[[ WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk! ]] if not game:IsLoaded() then print("Waiting for the game to load...") game.Loaded:Wait() end print("Game loaded!") local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local Camera = workspace.CurrentCamera local Mouse = LocalPlayer:GetMouse() local RaycastParams = RaycastParams.new() RaycastParams.FilterType = Enum.RaycastFilterType.Blacklist RaycastParams.FilterDescendantsInstances = {LocalPlayer.Character} local function debugLog(message) print("[Aimbot Debug]: " .. message) end local function isVisible(target) local origin = Camera.CFrame.Position local direction = (target.Position - origin).Unit * (target.Position - origin).Magnitude local rayResult = workspace:Raycast(origin, direction, RaycastParams) return not rayResult or rayResult.Instance:IsDescendantOf(target.Parent) end local function getClosestVisiblePlayer() debugLog("Finding the closest visible player...") local closestPlayer = nil local closestDistance = math.huge for _, player in pairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("Head") and player.Character:FindFirstChild("Humanoid") and player.Character.Humanoid.Health > 0 then local character = player.Character local head = character.Head local distance = (Camera.CFrame.Position - head.Position).Magnitude if distance < closestDistance and isVisible(head) then closestDistance = distance closestPlayer = player end end end if closestPlayer then debugLog("Closest visible player: " .. closestPlayer.Name) else debugLog("No visible players found.") end return closestPlayer end local aimbotEnabled = false local function toggleAimbot() aimbotEnabled = not aimbotEnabled if aimbotEnabled then debugLog("Aimbot Enabled") task.spawn(function() while aimbotEnabled do local target = getClosestVisiblePlayer() if target and target.Character and target.Character:FindFirstChild("Head") then local head = target.Character.Head Camera.CFrame = CFrame.lookAt(Camera.CFrame.Position, head.Position) debugLog("Locked onto " .. target.Name) mouse1click() else debugLog("No valid target to lock onto.") end task.wait(0.01) end end) else debugLog("Aimbot Disabled") end end local espEnabled = false local espLoop local function refreshESP() debugLog("Refreshing ESP...") for _, highlight in pairs(workspace:GetDescendants()) do if highlight:IsA("Highlight") then highlight:Destroy() end end for _, character in pairs(workspace:GetChildren()) do if character:IsA("Model") and character:FindFirstChild("Humanoid") then local highlight = Instance.new("Highlight") highlight.Parent = character highlight.FillColor = Color3.new(0, 1, 0) highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop debugLog("ESP added to " .. (character.Name or "Unknown")) end end end local function toggleESP() espEnabled = not espEnabled if espEnabled then debugLog("ESP Enabled") refreshESP() espLoop = task.spawn(function() while espEnabled do refreshESP() task.wait(2) end end) else debugLog("ESP Disabled") if espLoop then task.cancel(espLoop) end for _, highlight in pairs(workspace:GetDescendants()) do if highlight:IsA("Highlight") then highlight:Destroy() end end end end local ScreenGui = Instance.new("ScreenGui") local Frame = Instance.new("Frame") local ESPButton = Instance.new("TextButton") local AimbotButton = Instance.new("TextButton") local CloseButton = Instance.new("TextButton") ScreenGui.Parent = game:GetService("CoreGui") ScreenGui.Name = "ExecutorScriptGUI" Frame.Parent = ScreenGui Frame.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Frame.Size = UDim2.new(0, 200, 0, 140) Frame.Position = UDim2.new(0, 0, 0, 0) ESPButton.Parent = Frame ESPButton.Text = "Toggle ESP" ESPButton.Size = UDim2.new(0, 180, 0, 40) ESPButton.Position = UDim2.new(0, 10, 0, 10) ESPButton.BackgroundColor3 = Color3.new(0.2, 0.8, 0.2) AimbotButton.Parent = Frame AimbotButton.Text = "Toggle Aimbot" AimbotButton.Size = UDim2.new(0, 180, 0, 40) AimbotButton.Position = UDim2.new(0, 10, 0, 60) AimbotButton.BackgroundColor3 = Color3.new(0.8, 0.2, 0.2) CloseButton.Parent = Frame CloseButton.Text = "Close" CloseButton.Size = UDim2.new(0, 180, 0, 30) CloseButton.Position = UDim2.new(0, 10, 0, 110) CloseButton.BackgroundColor3 = Color3.new(1, 0, 0) CloseButton.TextColor3 = Color3.new(1, 1, 1) ESPButton.MouseButton1Click:Connect(toggleESP) AimbotButton.MouseButton1Click:Connect(toggleAimbot) CloseButton.MouseButton1Click:Connect(function() ScreenGui:Destroy() debugLog("GUI Closed") end)