Script [Opensrc]
Key Required

Script [Opensrc]

RUNAWAYS [beta]milesthegreatmilesthegreat 2.6K views 13.6K executesUpdated Aug 17, 2026
0.0/ 5(1 votes)
010% Positive
Lua Script•547 lines (16591 chars)
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

local Camera = workspace.CurrentCamera
local LocalPlayer = Players.LocalPlayer

local librarynew = loadstring(game:HttpGet("https://raw.githubusercontent.com/liebertsx/Tora-Library/main/src/librarynew", true))()
local window = librarynew:CreateWindow("RUNAWAYS")
local mainFolder = window:AddFolder("Main")
local aimbotFolder = window:AddFolder("Aimbot & ESP")

local killAuraEnabled = false
local killAuraRange = 50
local killAuraDamage = 100
local ammoAmount = 999

local targets = {
    NPCs = {},
    Safes = {},
}

local lastNpcUpdate = 0
local lastSafeUpdate = 0
local updateInterval = 1
local remoteEvent = nil

getgenv().AimbotEnabled = false
getgenv().EspNPCsEnabled = false
getgenv().EspLootEnabled = false
getgenv().AimbotTarget = {
    position = nil,
    part = nil,
}
getgenv().AimPart = "HumanoidRootPart"
getgenv().ShowFov = false
getgenv().FovRadius = 150

local touchEnabled = UserInputService.TouchEnabled and not UserInputService.MouseEnabled
getgenv().FovCenterScreen = touchEnabled

local espObjects = {}
local fovCircle = Drawing.new("Circle")
fovCircle.Visible = false
fovCircle.Thickness = 1.5
fovCircle.Color = Color3.fromRGB(255, 255, 255)
fovCircle.Filled = false
fovCircle.Transparency = 1
fovCircle.Radius = getgenv().FovRadius

local function handleRemoteEvent()
    if remoteEvent and remoteEvent.Parent then
        return remoteEvent
    end

    pcall(function()
        remoteEvent = ReplicatedStorage:FindFirstChild("FlowClient")
        if remoteEvent then
            remoteEvent = remoteEvent:FindFirstChild("ClientRunner")
            if remoteEvent then
                remoteEvent = remoteEvent:FindFirstChild("Event")
            end
        end
    end)

    if not remoteEvent or not remoteEvent.Parent then
        for _, descendant in ipairs(ReplicatedStorage:GetDescendants()) do
            if descendant.Name == "Event" and (descendant:IsA("RemoteEvent") or descendant:IsA("UnreliableRemoteEvent")) then
                remoteEvent = descendant
                return remoteEvent
            end
        end
    end

    return remoteEvent
end

local function updateNPCs()
    local npcs = {}
    local npcFolder = workspace:FindFirstChild("NPCs")
    if npcFolder then
        for _, child in ipairs(npcFolder:GetChildren()) do
            if child:IsA("Model") then
                local humanoid = child:FindFirstChildOfClass("Humanoid")
                if humanoid and humanoid.Health > 0 then
                    table.insert(npcs, {
                        Model = child,
                        Humanoid = humanoid,
                    })
                end
            end
        end
    end
    targets.NPCs = npcs
end

local function updateSafes()
    if os.clock() - lastSafeUpdate < 5 then
        return
    end
    lastSafeUpdate = os.clock()

    local safeList = {}
    local searchArea = workspace:FindFirstChild("Map") or workspace
    local npcFolder = workspace:FindFirstChild("NPCs")

    for _, descendant in ipairs(searchArea:GetDescendants()) do
        if not npcFolder or not descendant:IsDescendantOf(npcFolder) then
            local healthValue = descendant:FindFirstChild("Health")
            if healthValue and (healthValue:IsA("NumberValue") or healthValue:IsA("IntValue")) then
                local model = descendant:IsA("Model") and descendant or descendant:FindFirstAncestorOfClass("Model")
                if not model or not Players:GetPlayerFromCharacter(model) then
                    table.insert(safeList, descendant)
                end
            end
        end
    end
    targets.Safes = safeList
end

local function createEspHl(target, textLabel, fillColor, type)
    if not target or not target.Parent then return end

    local part = target:IsA("BasePart") and target or target:FindFirstChild("HumanoidRootPart") or target:FindFirstChild("Torso") or target.PrimaryPart or target:FindFirstChildOfClass("BasePart")
    if not part then return end

    local hlName = "ESP_HL_" .. type
    local bbName = "ESP_BB_" .. type

    if target:FindFirstChild(hlName) or part:FindFirstChild(bbName) then return end

    local highlight = Instance.new("Highlight")
    highlight.Name = hlName
    highlight.FillTransparency = 0.6
    highlight.OutlineTransparency = 0
    highlight.FillColor = fillColor
    highlight.OutlineColor = Color3.new(1, 1, 1)
    highlight.Parent = target

    local billboard = Instance.new("BillboardGui")
    billboard.Name = bbName
    billboard.Size = UDim2.new(0, 200, 0, 50)
    billboard.StudsOffset = Vector3.new(0, 3, 0)
    billboard.AlwaysOnTop = true

    local textLabelInst = Instance.new("TextLabel")
    textLabelInst.Size = UDim2.new(1, 0, 1, 0)
    textLabelInst.BackgroundTransparency = 1
    textLabelInst.Text = textLabel
    textLabelInst.TextColor3 = fillColor
    textLabelInst.TextStrokeTransparency = 0
    textLabelInst.TextScaled = false
    textLabelInst.TextSize = 14
    textLabelInst.Font = Enum.Font.Code
    textLabelInst.Parent = billboard
    billboard.Parent = part

    table.insert(espObjects, {
        highlight = highlight,
        billboard = billboard,
        target = target,
        type = type,
    })
end

local function removeEsp(type)
    for i = #espObjects, 1, -1 do
        local obj = espObjects[i]
        if obj.type == type then
            if obj.highlight then obj.highlight:Destroy() end
            if obj.billboard then obj.billboard:Destroy() end
            table.remove(espObjects, i)
        end
    end
end

task.spawn(function()
    while task.wait(1) do
        for i = #espObjects, 1, -1 do
            local obj = espObjects[i]
            if not obj.target or not obj.target.Parent then
                if obj.highlight then obj.highlight:Destroy() end
                if obj.billboard then obj.billboard:Destroy() end
                table.remove(espObjects, i)
            end
        end

        if getgenv().EspNPCsEnabled then
            local npcFolder = workspace:FindFirstChild("NPCs")
            if npcFolder then
                for _, child in ipairs(npcFolder:GetChildren()) do
                    if child:IsA("Model") then
                        createEspHl(child, child.Name, Color3.fromRGB(255, 50, 50), "NPC")
                    end
                end
            end
        end

        if getgenv().EspLootEnabled then
            local cashFolder = workspace:FindFirstChild("Cash")
            if cashFolder then
                for _, child in ipairs(cashFolder:GetChildren()) do
                    createEspHl(child, "Cash", Color3.fromRGB(50, 255, 50), "Loot")
                end
            end

            local lootFolder = workspace:FindFirstChild("Loot")
            if lootFolder then
                for _, child in ipairs(lootFolder:GetChildren()) do
                    createEspHl(child, child.Name, Color3.fromRGB(0, 255, 255), "Loot")
                end
            end

            updateSafes()

            for _, child in ipairs(targets.Safes) do
                createEspHl(child, child.Name or "Safe", Color3.fromRGB(255, 215, 0), "Loot")
            end
        end
    end
end)

local function executeKillAura()
    local remote = handleRemoteEvent()
    if not remote then return end

    local character = LocalPlayer.Character
    if not character then return end

    local rootPart = character:FindFirstChild("HumanoidRootPart") or character:FindFirstChild("Torso") or character.PrimaryPart
    if not rootPart then return end

    local rootPosition = rootPart.Position

    if os.clock() - lastNpcUpdate > updateInterval then
        updateNPCs()
        updateSafes()
        lastNpcUpdate = os.clock()
    end

    for _, data in ipairs(targets.NPCs) do
        if not killAuraEnabled then break end

        local model = data.Model
        local humanoid = data.Humanoid

        if model and model.Parent and humanoid and humanoid.Parent and humanoid.Health > 0 then
            local primaryPart = model.PrimaryPart or model:FindFirstChild("HumanoidRootPart") or model:FindFirstChildOfClass("BasePart")
            if primaryPart and (primaryPart.Position - rootPosition).Magnitude <= killAuraRange then
                pcall(function()
                    remote:FireServer("NPCs", "Damage", humanoid, killAuraDamage)
                end)
            end
        end
    end

    for _, safe in ipairs(targets.Safes) do
        if not killAuraEnabled then break end

        local parent = safe.Parent
        if parent then
            local basePart = safe:IsA("BasePart") and safe or safe:FindFirstChildOfClass("BasePart")
            local position = basePart and basePart.Position

            if not position and safe:IsA("Model") then
                position = safe:GetPivot().Position
            end

            if position and (position - rootPosition).Magnitude <= killAuraRange then
                pcall(function()
                    remote:FireServer("DamageToOpen", "Damage", safe, killAuraDamage, "melee")
                end)
            end
        end
    end
end

local function killAuraLoop()
    while killAuraEnabled do
        executeKillAura()
        task.wait(0.2)
    end
end

local function toggleKillAura(state)
    if state == killAuraEnabled then return end
    killAuraEnabled = state
    if killAuraEnabled then
        task.spawn(killAuraLoop)
    end
end

local function applyAmmo()
    local remote = handleRemoteEvent()
    if not remote then return end

    local containers = {}
    if LocalPlayer:FindFirstChild("Backpack") then
        table.insert(containers, LocalPlayer.Backpack)
    end
    if LocalPlayer.Character then
        table.insert(containers, LocalPlayer.Character)
    end

    for _, container in ipairs(containers) do
        for _, item in ipairs(container:GetChildren()) do
            if item:IsA("Tool") then
                pcall(function()
                    remote:FireServer("Ammo", "setAmmo", item, ammoAmount)
                end)
            end
        end
    end
end

RunService.Heartbeat:Connect(function()
    local screenCenter = Camera.ViewportSize / 2
    local mouseLocation = getgenv().FovCenterScreen and screenCenter or UserInputService:GetMouseLocation()

    if fovCircle then
        fovCircle.Position = mouseLocation
        fovCircle.Radius = getgenv().FovRadius
        fovCircle.Visible = getgenv().ShowFov
    end

    if getgenv().AimbotEnabled then
        local npcFolder = workspace:FindFirstChild("NPCs")
        if npcFolder then
            local closestDist = getgenv().FovRadius
            local closestPos = nil
            local closestPart = nil

            for _, child in ipairs(npcFolder:GetChildren()) do
                local aimPart = child:FindFirstChild(getgenv().AimPart) or child:FindFirstChild("HumanoidRootPart") or child:FindFirstChild("Torso") or child.PrimaryPart
                local humanoid = child:FindFirstChildOfClass("Humanoid")

                if aimPart and humanoid and humanoid.Health > 0 then
                    local screenPos, onScreen = Camera:WorldToScreenPoint(aimPart.Position)
                    if onScreen then
                        local dist = (Vector2.new(screenPos.X, screenPos.Y) - mouseLocation).Magnitude
                        if dist <= closestDist then
                            closestDist = dist
                            closestPos = aimPart.Position
                            closestPart = aimPart
                        end
                    end
                end
            end

            getgenv().AimbotTarget = {
                position = closestPos,
                part = closestPart,
            }
        end
    else
        getgenv().AimbotTarget = {
            position = nil,
            part = nil,
        }
    end
end)

if not getgenv().AimbotHooked then
    getgenv().AimbotHooked = true

    local originalNamecall
    originalNamecall = hookmetamethod(game, "__namecall", newcclosure(function(self, ...)
        local method = getnamecallmethod()
        local aimData = getgenv().AimbotTarget

        if getgenv().AimbotEnabled and aimData and aimData.position then
            if method:lower() == "raycast" and self == workspace then
                local args = { ... }
                args[2] = (aimData.position - args[1]).Unit * args[2].Magnitude
                return originalNamecall(self, table.unpack(args))
            end

            if method == "FindPartOnRayWithIgnoreList" or method == "FindPartOnRay" then
                local args = { ... }
                local origin = args[1].Origin
                local direction = (aimData.position - origin).Unit * args[1].Direction.Magnitude
                args[1] = Ray.new(origin, direction)
                return originalNamecall(self, table.unpack(args))
            end
        end

        return originalNamecall(self, ...)
    end))

    local originalIndex
    originalIndex = hookmetamethod(game, "__index", newcclosure(function(self, key)
        if getgenv().AimbotEnabled and getgenv().AimbotTarget and getgenv().AimbotTarget.position then
            if self:IsA("Mouse") then
                if key == "Hit" or key == "hit" then
                    return CFrame.new(getgenv().AimbotTarget.position)
                end
                if key == "Target" or key == "target" then
                    return getgenv().AimbotTarget.part
                end
            end
        end
        return originalIndex(self, key)
    end))
end

mainFolder:AddToggle({
    text = "Kill Aura",
    flag = "killaura",
    callback = function(state)
        toggleKillAura(state)
    end,
})

mainFolder:AddBox({
    text = "Kill Aura Range [Studs]",
    value = tostring(killAuraRange),
    flag = "killaura_range",
    callback = function(val)
        local num = tonumber(val)
        if num then
            killAuraRange = num
        end
    end,
})

mainFolder:AddBox({
    text = "Kill Aura Damage",
    value = tostring(killAuraDamage),
    flag = "killaura_damage",
    callback = function(val)
        local num = tonumber(val)
        if num then
            killAuraDamage = num
        end
    end,
})

mainFolder:AddBox({
    text = "Ammo Amount",
    value = tostring(ammoAmount),
    flag = "setammoamount",
    callback = function(val)
        local num = tonumber(val)
        if num then
            ammoAmount = num
        end
    end,
})

mainFolder:AddButton({
    text = "Apply Ammo",
    callback = applyAmmo,
})

mainFolder:AddButton({
    text = "Teleport End",
    callback = function()
        game:GetService("StarterGui"):SetCore("SendNotification", {
            Title = "Getting Fix Soon...",
            Text = "Sorry This This Button Has a bug",
            Icon = "",
        })
    end,
})

aimbotFolder:AddToggle({
    text = "Silent Aim",
    flag = "silentaim",
    callback = function(state)
        getgenv().AimbotEnabled = state
    end,
})

aimbotFolder:AddList({
    text = "Aim Part",
    flag = "aimpart_select",
    values = {
        "HumanoidRootPart",
        "Head",
    },
    callback = function(val)
        getgenv().AimPart = val
    end,
})

aimbotFolder:AddToggle({
    text = "Show FOV Circle",
    flag = "show_fov",
    callback = function(state)
        getgenv().ShowFov = state
    end,
})

aimbotFolder:AddToggle({
    text = "FOV Center Screen",
    flag = "fov_center",
    callback = function(state)
        getgenv().FovCenterScreen = state
    end,
})

aimbotFolder:AddSlider({
    text = "FOV Size",
    min = 50,
    max = 300,
    value = 150,
    type = "slider",
    callback = function(val)
        local radius = tonumber(val)
        if radius then
            getgenv().FovRadius = radius
            if fovCircle then
                fovCircle.Radius = radius
            end
        end
    end,
})

aimbotFolder:AddToggle({
    text = "ESP NPCs",
    flag = "espnpc",
    callback = function(state)
        getgenv().EspNPCsEnabled = state
        if not state then
            removeEsp("NPC")
        end
    end,
})

aimbotFolder:AddToggle({
    text = "ESP Loot & Safes",
    flag = "esploot",
    callback = function(state)
        getgenv().EspLootEnabled = state
        if not state then
            removeEsp("Loot")
        end
    end,
})

mainFolder:AddLabel({
    text = "Made By milesthegreat",
    type = "label",
})

librarynew:Init()

Features & Information

Kill Aura Silent Aim Loot Esp & Npc Esp Etc..
#Open#Source#Script#Roblox

Community Comments (0)

No comments yet for this script.

More Scripts for RUNAWAYS [beta]