Zum Inhalt springen
Funktioniert

Vibe code hub (Esp, Aimbot)

CLclarkdevlinorg0 AufrufeUniversal26. Juli 2026
Teilen
Vibe code hub (Esp, Aimbot)

Script-Code

Lua
-- Drag red title bar to move GUI | Hold E to aim | INSERT = Show/Hide GUI | F2 = Unload

local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")

local AimbotEnabled = true
local ESPEnabled = true
local AimKey = Enum.KeyCode.E
local AimPart = "Head"
local Smoothness = 0.28
local FOVRadius = 110
local MaxDistance = 850

local ESP = {}
local FOVCircle = nil
local ScreenGui = nil
local ScriptLoaded = true
local CurrentTarget = nil

wait(0.8)

local function SafeUnload()
    ScriptLoaded = false
    CurrentTarget = nil
    for _, data in pairs(ESP) do 
        pcall(function() 
            data.Box:Remove() 
            data.Name:Remove() 
        end) 
    end
    if FOVCircle then pcall(function() FOVCircle:Remove() end) end
    if ScreenGui then pcall(function() ScreenGui:Destroy() end) end
    print(" Unloaded")
end

local function HideAllESP()
    for _, data in pairs(ESP) do
        pcall(function()
            if data.Box then data.Box.Visible = false end
            if data.Name then data.Name.Visible = false end
        end)
    end
end

local function CreateFOVCircle()
    if FOVCircle then pcall(FOVCircle.Remove, FOVCircle) end
    FOVCircle = Drawing.new("Circle")
    FOVCircle.Thickness = 1.5
    FOVCircle.Filled = false
    FOVCircle.Transparency = 0.75
    FOVCircle.Color = Color3.fromRGB(0, 255, 100)
    FOVCircle.Radius = FOVRadius
    FOVCircle.Position = Vector2.new(Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2)
    FOVCircle.Visible = true
end

local function RemoveESP(plr)
    if ESP[plr] then
        pcall(function()
            ESP[plr].Box:Remove()
            ESP[plr].Name:Remove()
        end)
        ESP[plr] = nil
    end
end

local function CreateESP(plr)
    if plr == LocalPlayer then return end
    RemoveESP(plr)
    local box = Drawing.new("Square")
    box.Thickness = 2
    box.Filled = false
    box.Transparency = 1
    box.Color = Color3.fromRGB(255, 0, 0)
    local name = Drawing.new("Text")
    name.Size = 15
    name.Center = true
    name.Outline = true
    name.Color = Color3.fromRGB(255, 255, 0)
    ESP[plr] = {Box = box, Name = name}
end

local function UpdateESP()
    if not ESPEnabled or not ScriptLoaded then 
        HideAllESP()
        return 
    end
    for plr, data in pairs(ESP) do
        pcall(function()
            local char = plr.Character
            if char and char:FindFirstChild("HumanoidRootPart") then
                local hum = char:FindFirstChild("Humanoid")
                if hum and hum.Health > 0 then
                    local root = char.HumanoidRootPart
                    local head = char:FindFirstChild("Head") or root
                    local _, onScreen = Camera:WorldToViewportPoint(root.Position)
                    if onScreen then
                        local top = Camera:WorldToViewportPoint(head.Position + Vector3.new(0,2.5,0))
                        local bottom = Camera:WorldToViewportPoint(root.Position - Vector3.new(0,3,0))
                        local h = bottom.Y - top.Y
                        
                        data.Box.Size = Vector2.new(h*0.6, h)
                        data.Box.Position = Vector2.new(top.X - h*0.3, top.Y)
                        data.Box.Visible = true
                        
                        data.Name.Text = plr.Name
                        data.Name.Position = Vector2.new(top.X, top.Y - 20)
                        data.Name.Visible = true
                    else
                        data.Box.Visible = false
                        data.Name.Visible = false
                    end
                else
                    data.Box.Visible = false
                    data.Name.Visible = false
                end
            else
                data.Box.Visible = false
                data.Name.Visible = false
            end
        end)
    end
end

local function IsInFOV(target)
    if not target or not target.Character then return false end
    local screenPos, onScreen = Camera:WorldToViewportPoint(target.Character[AimPart].Position)
    if not onScreen then return false end
    local center = Camera.ViewportSize / 2
    return (Vector2.new(screenPos.X, screenPos.Y) - center).Magnitude <= FOVRadius
end

local function GetBestTarget()
    local best, minDist = nil, math.huge
    for _, plr in ipairs(Players:GetPlayers()) do
        if plr ~= LocalPlayer and plr.Character then
            local hum = plr.Character:FindFirstChild("Humanoid")
            if hum and hum.Health > 0 and plr.Character:FindFirstChild(AimPart) and IsInFOV(plr) then
                local dist = (Camera.CFrame.Position - plr.Character[AimPart].Position).Magnitude
                if dist < minDist then
                    minDist = dist
                    best = plr
                end
            end
        end
    end
    return best
end

local function Aimbot()
    if not AimbotEnabled or not UserInputService:IsKeyDown(AimKey) then
        CurrentTarget = nil
        return
    end

    if not CurrentTarget or not CurrentTarget.Character or not CurrentTarget.Character:FindFirstChild("Humanoid") or CurrentTarget.Character.Humanoid.Health <= 0 or not IsInFOV(CurrentTarget) then
        CurrentTarget = GetBestTarget()
    end

    if CurrentTarget and CurrentTarget.Character and CurrentTarget.Character:FindFirstChild(AimPart) then
        local targetPos = CurrentTarget.Character[AimPart].Position
        local current = Camera.CFrame
        local targetCF = CFrame.lookAt(current.Position, targetPos)
        Camera.CFrame = current:Lerp(targetCF, Smoothness)
    end
end

-- Draggable GUI
local function CreateGUI()
    if ScreenGui then pcall(function() ScreenGui:Destroy() end) end
    
    ScreenGui = Instance.new("ScreenGui")
    ScreenGui.ResetOnSpawn = false
    ScreenGui.IgnoreGuiInset = true
    
    pcall(function() ScreenGui.Parent = game:GetService("CoreGui") end)
    if not ScreenGui.Parent then
        pcall(function() ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui") end)
    end
    
    local Main = Instance.new("Frame")
    Main.Size = UDim2.new(0, 300, 0, 260)
    Main.Position = UDim2.new(0.5, -150, 0.35, 0)
    Main.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
    Main.BorderSizePixel = 4
    Main.BorderColor3 = Color3.fromRGB(255, 0, 0)
    Main.Parent = ScreenGui
    
    local Title = Instance.new("TextLabel")
    Title.Size = UDim2.new(1,0,0,50)
    Title.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
    Title.Text = "vibe code hub by vfxlaber"
    Title.TextColor3 = Color3.new(1,1,1)
    Title.TextScaled = true
    Title.Parent = Main
    
    -- Draggable
    local dragging = false
    local dragStart, startPos
    Title.InputBegan:Connect(function(input)
        if input.UserInputType == Enum.UserInputType.MouseButton1 then
            dragging = true
            dragStart = input.Position
            startPos = Main.Position
        end
    end)
    UserInputService.InputChanged:Connect(function(input)
        if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
            local delta = input.Position - dragStart
            Main.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
        end
    end)
    UserInputService.InputEnded:Connect(function(input)
        if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end
    end)
    
    local aimBtn = Instance.new("TextButton")
    aimBtn.Size = UDim2.new(0.9,0,0,45)
    aimBtn.Position = UDim2.new(0.05,0,0,70)
    aimBtn.BackgroundColor3 = Color3.fromRGB(0, 180, 0)
    aimBtn.Text = "Aimbot: ON"
    aimBtn.TextScaled = true
    aimBtn.Parent = Main
    aimBtn.MouseButton1Click:Connect(function()
        AimbotEnabled = not AimbotEnabled
        aimBtn.Text = "Aimbot: " .. (AimbotEnabled and "ON" or "OFF")
    end)
    
    local espBtn = Instance.new("TextButton")
    espBtn.Size = UDim2.new(0.9,0,0,45)
    espBtn.Position = UDim2.new(0.05,0,0,130)
    espBtn.BackgroundColor3 = Color3.fromRGB(0, 180, 0)
    espBtn.Text = "ESP: ON"
    espBtn.TextScaled = true
    espBtn.Parent = Main
    espBtn.MouseButton1Click:Connect(function()
        ESPEnabled = not ESPEnabled
        espBtn.Text = "ESP: " .. (ESPEnabled and "ON" or "OFF")
        if not ESPEnabled then HideAllESP() end
    end)
    
end

-- Setup
CreateFOVCircle()
CreateGUI()

for _, plr in ipairs(Players:GetPlayers()) do CreateESP(plr) end
Players.PlayerAdded:Connect(CreateESP)
Players.PlayerRemoving:Connect(RemoveESP)

RunService.RenderStepped:Connect(function()
    if not ScriptLoaded then return end
    UpdateESP()
    Aimbot()
    if FOVCircle then
        FOVCircle.Position = Vector2.new(Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2)
    end
end)

UserInputService.InputBegan:Connect(function(input, gp)
    if gp then return end
    if input.KeyCode == Enum.KeyCode.Insert then
        if ScreenGui then ScreenGui.Enabled = not ScreenGui.Enabled end
    elseif input.KeyCode == Enum.KeyCode.F2 then
        SafeUnload()
    end
end)

Beschreibung

Basically loads a gui that has esp and aimbot, pretty sure you can change fov circle settings in code and aimbot settings. It's all open source so I don't care what people do with the code this was just for fun and a little project. HOLD E TO LOCK ON WITH AIMBOT.

Kommentare (0)

Melde an, um an der Unterhaltung teilzunehmen

  • Sei der Erste, der kommentiert.

Häufig gestellte Fragen

Wie verwende ich den Vibe code hub (Esp, Aimbot)-Script?
Kopiere den obigen Code, öffne deinen Roblox-Executor, füge den Code ein und drücke Ausführen, während du im Spiel bist. Die Funktionen werden sofort aktiviert, sobald der Script läuft.
Ist der Vibe code hub (Esp, Aimbot)-Script kostenlos?
Ja. Dieser Script ist völlig kostenlos zu kopieren und zu verwenden. Wenn er ein Schlüsselsystem nutzt, folge dem Link "Schlüssel erhalten", um ihn kostenlos freizuschalten.
Ist der Vibe code hub (Esp, Aimbot)-Script sicher zu verwenden?
Der vollständige Quellcode wird auf dieser Seite angezeigt, damit du genau lesen kannst, was er tut, bevor du ihn ausführst. Verwende immer einen vertrauenswürdigen Executor, und denke daran, dass die Verwendung von Scripts gegen die Nutzungsbedingungen von Roblox verstößt — verwende sie auf eigene Gefahr.
Welcher Executor funktioniert mit Vibe code hub (Esp, Aimbot)?
Dieser Script funktioniert mit den meisten beliebten Roblox-Executoren. Besuche unsere Executor-Seite, um einen vertrauenswürdigen kostenlosen oder kostenpflichtigen Executor für dein Gerät zu finden.
Vibe code hub (Esp, Aimbot) | BloxScripter