wait(1) local guiGui = Instance.new("ScreenGui") local guiButton = Instance.new("TextButton") local guiUi = Instance.new("UICorner") local guiSound = Instance.new("Sound") local guiHigh = Instance.new("Highlight") local guiBill = Instance.new("BillboardGui") local guiEsp = Instance.new("TextLabel") local guiCircle = Instance.new("Frame") local guiCircleCorner = Instance.new("UICorner") local guiCircleStroke = Instance.new("UIStroke") local hrp = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") local targetAim local active = false local temp_01 local temp_01variant function activateGui() guiGui.Name = "DavRESP" guiGui.ResetOnSpawn = true guiGui.Parent = game.Players.LocalPlayer.PlayerGui guiButton.Name = "Activate" guiButton.BackgroundColor3 = Color3.fromRGB(47, 255, 0) guiButton.TextColor3 = Color3.fromRGB(255, 255, 255) guiButton.TextScaled = true guiButton.Text = "AIMBOT" guiButton.AnchorPoint = Vector2.new(0.5, 0.5) guiButton.Size = UDim2.new(0, 200, 0, 50) guiButton.Position = UDim2.new(0.5, 0, 0.151, 0) guiButton.Parent = guiGui guiUi.Name = "OnOffButtonStyle" guiUi.CornerRadius = UDim.new(0, 20) guiUi.Parent = guiButton guiSound.Name = "ClickSound" guiSound.Volume = 0.25 guiSound.PlaybackSpeed = 20 guiSound.SoundId = "rbxassetid://138186576" guiSound.Parent = guiGui guiBill.Name = "EspPHandle" guiBill.Size = UDim2.new(0, 100, 0, 100) guiBill.AlwaysOnTop = true guiEsp.Name = "EspPlayers" guiEsp.BackgroundTransparency = 1 guiEsp.TextScaled = true guiEsp.TextColor3 = Color3.fromRGB(255, 255, 255) guiEsp.BorderSizePixel = 2 guiEsp.Size = UDim2.new(0, 100, 0, 100) guiEsp.Parent = guiBill guiHigh.Name = "NotChildInstanceStylerDavRESP" guiHigh.FillTransparency = 0.5 guiHigh.OutlineColor = Color3.fromRGB(55, 255, 0) guiHigh.FillColor = Color3.fromRGB(55, 255, 0) guiHigh.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop guiCircle.Name = "GuiCameraTest" guiCircle.AnchorPoint = Vector2.new(0.5, 0.5) guiCircle.BackgroundTransparency = 1 guiCircle.Size = UDim2.new(0, 300, 0, 300) guiCircle.Position = UDim2.new(0.5, 0, 0.5, 0) guiCircle.Parent = guiGui guiCircleCorner.Name = "GCTChildCorner" guiCircleCorner.CornerRadius = UDim.new(1, 0) guiCircleCorner.Parent = guiCircle guiCircleStroke.Name = "GCTChildStroke" guiCircleStroke.Thickness = 2 guiCircleStroke.Color = Color3.fromRGB(64, 0, 255) guiCircleStroke.Parent = guiCircle end function espOn() active = true guiButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0) guiButton.Text = "STOP" guiCircle.Visible = true end function espOff() active = false guiButton.BackgroundColor3 = Color3.fromRGB(47, 255, 0) guiButton.Text = "AIMBOT" guiCircle.Visible = false end function loadActivateGuis() activateGui() wait(0.1) espOff() end local function isPlayer(obj) if obj and obj.Parent == game.Workspace and obj:IsA("Model") and obj:FindFirstChildOfClass("Humanoid") and obj:FindFirstChild("HumanoidRootPart") then return true else return false end end local maxAim = 500 local function getAim() local lastP local lastPOS lastPOS = nil lastP = math.huge for _, p in ipairs(game.Workspace:GetChildren()) do if p and isPlayer(p) then if (p:FindFirstChild("HumanoidRootPart").Position - hrp.Position).Magnitude < lastP and (p:FindFirstChild("HumanoidRootPart").Position - hrp.Position).Magnitude < maxAim and p ~= game.Players.LocalPlayer.Character then temp_01, temp_01variant = game.Workspace.CurrentCamera:WorldToViewportPoint(p:FindFirstChild("HumanoidRootPart").Position) if temp_01variant and temp_01.Z > 0 then lastP = (p:FindFirstChild("HumanoidRootPart").Position - hrp.Position).Magnitude lastPOS = p:FindFirstChild("HumanoidRootPart") end end end end if lastP and lastPOS then return lastPOS end end local tempClone function loadAll() loadActivateGuis() task.spawn(function() while true do task.wait(0.1) if active then for _, p in ipairs(game.Workspace:GetChildren()) do if p and isPlayer(p) and not p:FindFirstChild("HumanoidRootPart"):FindFirstChild("EspPHandle") and p.Name ~= game.Players.LocalPlayer.Name then tempClone = guiBill:Clone() tempClone.Parent = p:FindFirstChild("HumanoidRootPart") tempClone:FindFirstChild("EspPlayers").Text = p.Name tempClone = guiHigh:Clone() tempClone.Parent = p tempClone.Adornee = p end end end end end) task.spawn(function() while true do task.wait(0.1) if active then targetAim = getAim() if targetAim then game.Workspace.CurrentCamera.CFrame = CFrame.new(game.Workspace.CurrentCamera.CFrame.Position, targetAim.Position) end targetAim = nil end end end) end guiButton.MouseButton1Click:Connect(function() active = not active guiSound:Play() if active then espOn() else espOff() for _, p in ipairs(game.Workspace:GetChildren()) do if p and isPlayer(p) and p:FindFirstChild("HumanoidRootPart"):FindFirstChild("EspPHandle") then p:FindFirstChild("HumanoidRootPart"):FindFirstChild("EspPHandle"):Destroy() p:FindFirstChild("NotChildInstanceStylerDavRESP"):Destroy() end end end end) game.Players.LocalPlayer.CharacterAdded:Connect(loadAll) loadAll()