open source
Key Required

open source

Deathrun RNG 💀melvinnagy07melvinnagy07 1.5K views 33 executesUpdated Jan 14, 2026
0.0/ 5(1 votes)
010% Positive
Lua Script•328 lines (10961 chars)
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")

local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local rootPart = character:WaitForChild("HumanoidRootPart")

local winTargets = {
    Vector3.new(-7, 20, 966),
    Vector3.new(-5, 29, 1834),
    Vector3.new(22, 9, 2902),
    Vector3.new(10, 58, 3696)
}

local winWall = Workspace.RunWay.Section100.Wall

local settings = {
    enabled = false,
    interval = 0.05,
    currentTarget = 1,
    isDragging = false,
    dragOffset = Vector2.new(0, 0),
    arabicMode = true
}

local teleportThread

local function teleportToTarget()
    if not rootPart or not rootPart.Parent then
        character = player.Character
        if character then
            rootPart = character:FindFirstChild("HumanoidRootPart")
        end
        if not rootPart then return false end
    end
    
    local targetPos
    if settings.currentTarget == 5 and winWall then
        targetPos = winWall.Position + Vector3.new(0, 5, 0)
    else
        targetPos = winTargets[settings.currentTarget]
    end
    
    pcall(function()
        rootPart.CFrame = CFrame.new(targetPos)
    end)
    
    settings.currentTarget = settings.currentTarget + 1
    if settings.currentTarget > 5 then
        settings.currentTarget = 1
    end
    
    return true
end

local function startAutoTeleport()
    if teleportThread then
        task.cancel(teleportThread)
    end
    
    teleportThread = task.spawn(function()
        while settings.enabled do
            teleportToTarget()
            task.wait(settings.interval)
        end
    end)
end

local playerGui = player:WaitForChild("PlayerGui")

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "AutoTeleportUI"
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = playerGui

local MainFrame = Instance.new("Frame")
MainFrame.Name = "MainFrame"
MainFrame.Size = UDim2.new(0, 200, 0, 120)
MainFrame.Position = UDim2.new(0.5, -100, 0.5, -60)
MainFrame.BackgroundColor3 = Color3.fromRGB(30, 40, 30)
MainFrame.BackgroundTransparency = 0.1
MainFrame.BorderSizePixel = 0
MainFrame.Parent = ScreenGui

local MainCorner = Instance.new("UICorner")
MainCorner.CornerRadius = UDim.new(0, 10)
MainCorner.Parent = MainFrame

local TopBar = Instance.new("Frame")
TopBar.Name = "TopBar"
TopBar.Size = UDim2.new(1, 0, 0, 30)
TopBar.BackgroundTransparency = 1
TopBar.Parent = MainFrame

local DiscordLabel = Instance.new("TextLabel")
DiscordLabel.Name = "DiscordLabel"
DiscordLabel.Size = UDim2.new(0, 80, 0, 20)
DiscordLabel.Position = UDim2.new(0, 10, 0, 5)
DiscordLabel.BackgroundTransparency = 1
DiscordLabel.Text = "💎 Proxy"
DiscordLabel.TextColor3 = Color3.fromRGB(180, 220, 180)
DiscordLabel.TextSize = 11
DiscordLabel.Font = Enum.Font.GothamBold
DiscordLabel.TextXAlignment = Enum.TextXAlignment.Left
DiscordLabel.Parent = TopBar

local TranslateButton = Instance.new("TextButton")
TranslateButton.Name = "TranslateButton"
TranslateButton.Size = UDim2.new(0, 60, 0, 20)
TranslateButton.Position = UDim2.new(0.5, -30, 0, 5)
TranslateButton.BackgroundColor3 = Color3.fromRGB(60, 80, 60)
TranslateButton.TextColor3 = Color3.fromRGB(255, 255, 255)
TranslateButton.Text = "English"
TranslateButton.TextSize = 11
TranslateButton.Font = Enum.Font.GothamBold
TranslateButton.AutoButtonColor = true
TranslateButton.Parent = TopBar

local TranslateCorner = Instance.new("UICorner")
TranslateCorner.CornerRadius = UDim.new(0, 5)
TranslateCorner.Parent = TranslateButton

local CloseButton = Instance.new("TextButton")
CloseButton.Name = "CloseButton"
CloseButton.Size = UDim2.new(0, 20, 0, 20)
CloseButton.Position = UDim2.new(1, -25, 0, 5)
CloseButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
CloseButton.Text = "x"
CloseButton.TextSize = 12
CloseButton.Font = Enum.Font.GothamBold
CloseButton.AutoButtonColor = true
CloseButton.Parent = TopBar

local CloseCorner = Instance.new("UICorner")
CloseCorner.CornerRadius = UDim.new(0, 5)
CloseCorner.Parent = CloseButton

local TeleportButton = Instance.new("TextButton")
TeleportButton.Name = "TeleportButton"
TeleportButton.Size = UDim2.new(1, -20, 0, 50)
TeleportButton.Position = UDim2.new(0, 10, 0, 40)
TeleportButton.BackgroundColor3 = Color3.fromRGB(0, 180, 255)
TeleportButton.TextColor3 = Color3.fromRGB(255, 255, 255)
TeleportButton.TextStrokeTransparency = 0.8
TeleportButton.Text = "🚀 تفعيل النقل التلقائي"
TeleportButton.TextSize = 15
TeleportButton.Font = Enum.Font.GothamBold
TeleportButton.AutoButtonColor = false
TeleportButton.Parent = MainFrame

local ButtonCorner = Instance.new("UICorner")
ButtonCorner.CornerRadius = UDim.new(0, 8)
ButtonCorner.Parent = TeleportButton

local Shadow = Instance.new("ImageLabel")
Shadow.Size = UDim2.new(1, 10, 1, 10)
Shadow.Position = UDim2.new(0, -5, 0, -5)
Shadow.BackgroundTransparency = 1
Shadow.Image = "rbxassetid://1316045217"
Shadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
Shadow.ImageTransparency = 0.7
Shadow.ScaleType = Enum.ScaleType.Slice
Shadow.SliceCenter = Rect.new(10, 10, 118, 118)
Shadow.Parent = TeleportButton
Shadow.ZIndex = TeleportButton.ZIndex - 1

local function isTouchInput(input)
    return input.UserInputType == Enum.UserInputType.Touch
end

local function isMouseInput(input)
    return input.UserInputType == Enum.UserInputType.MouseButton1
end

local function canDrag(input)
    return isTouchInput(input) or isMouseInput(input)
end

TopBar.InputBegan:Connect(function(input)
    if canDrag(input) then
        settings.isDragging = true
        settings.dragOffset = Vector2.new(
            input.Position.X - MainFrame.AbsolutePosition.X,
            input.Position.Y - MainFrame.AbsolutePosition.Y
        )
    end
end)

UserInputService.InputChanged:Connect(function(input)
    if settings.isDragging and (isTouchInput(input) or input.UserInputType == Enum.UserInputType.MouseMovement) then
        MainFrame.Position = UDim2.new(
            0, input.Position.X - settings.dragOffset.X,
            0, input.Position.Y - settings.dragOffset.Y
        )
    end
end)

UserInputService.InputEnded:Connect(function(input)
    if settings.isDragging and canDrag(input) then
        settings.isDragging = false
    end
end)

TopBar.Active = true

TranslateButton.MouseButton1Click:Connect(function()
    settings.arabicMode = not settings.arabicMode
    if settings.arabicMode then
        TranslateButton.Text = "English"
        TeleportButton.Text = settings.enabled and "⏹️ إيقاف النقل التلقائي" or "🚀 تفعيل النقل التلقائي"
    else
        TranslateButton.Text = "عربي"
        TeleportButton.Text = settings.enabled and "⏹️ Stop Auto Teleport" or "🚀 Start Auto Teleport"
    end
end)

CloseButton.MouseButton1Click:Connect(function()
    if settings.enabled and teleportThread then
        task.cancel(teleportThread)
    end
    ScreenGui:Destroy()
end)

TeleportButton.MouseButton1Click:Connect(function()
    settings.enabled = not settings.enabled
    if settings.enabled then
        if settings.arabicMode then
            TeleportButton.Text = "⏹️ إيقاف النقل التلقائي"
        else
            TeleportButton.Text = "⏹️ Stop Auto Teleport"
        end
        TeleportButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
        startAutoTeleport()
    else
        if settings.arabicMode then
            TeleportButton.Text = "🚀 تفعيل النقل التلقائي"
        else
            TeleportButton.Text = "🚀 Start Auto Teleport"
        end
        TeleportButton.BackgroundColor3 = Color3.fromRGB(0, 180, 255)
        if teleportThread then
            task.cancel(teleportThread)
            teleportThread = nil
        end
    end
end)

TeleportButton.MouseEnter:Connect(function()
    TweenService:Create(TeleportButton, TweenInfo.new(0.2, Enum.EasingStyle.Quad), {
        BackgroundColor3 = Color3.fromRGB(0, 220, 255),
        TextSize = 16
    }):Play()
end)

TeleportButton.MouseLeave:Connect(function()
    TweenService:Create(TeleportButton, TweenInfo.new(0.2, Enum.EasingStyle.Quad), {
        BackgroundColor3 = settings.enabled and Color3.fromRGB(255, 50, 50) or Color3.fromRGB(0, 180, 255),
        TextSize = 15
    }):Play()
end)

MainFrame.Active = true
MainFrame.Draggable = true

task.spawn(function()
    while true do
        if settings.enabled then
            if not character or not character.Parent or character:FindFirstChild("Humanoid") and character.Humanoid.Health <= 0 then
                task.wait(1)
                character = player.Character or player.CharacterAdded:Wait()
                if character then
                    rootPart = character:WaitForChild("HumanoidRootPart", 5)
                end
            end
        end
        task.wait(0.1)
    end
end)

local function showNotification(message, duration)
    duration = duration or 5
    local NotificationGui = Instance.new("ScreenGui")
    NotificationGui.Name = "NotificationGui"
    NotificationGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
    NotificationGui.Parent = playerGui
    local Frame = Instance.new("Frame")
    Frame.Size = UDim2.new(0, 250, 0, 80)
    Frame.Position = UDim2.new(0.5, -125, 0.3, 0)
    Frame.BackgroundColor3 = Color3.fromRGB(25, 25, 30)
    Frame.BorderSizePixel = 0
    Frame.BackgroundTransparency = 1
    Frame.Parent = NotificationGui
    local Corner = Instance.new("UICorner")
    Corner.CornerRadius = UDim.new(0, 15)
    Corner.Parent = Frame
    local UIStroke = Instance.new("UIStroke")
    UIStroke.Color = Color3.fromRGB(100, 255, 200)
    UIStroke.Thickness = 2
    UIStroke.Parent = Frame
    local TextLabel = Instance.new("TextLabel")
    TextLabel.Size = UDim2.new(1, -20, 1, -20)
    TextLabel.Position = UDim2.new(0, 10, 0, 10)
    TextLabel.BackgroundTransparency = 1
    TextLabel.TextColor3 = Color3.fromRGB(200, 255, 220)
    TextLabel.TextStrokeTransparency = 0.7
    TextLabel.Font = Enum.Font.GothamBold
    TextLabel.TextSize = 18
    TextLabel.TextWrapped = true
    TextLabel.Text = message .. "\nClosing in " .. duration .. "s"
    TextLabel.Parent = Frame
    TweenService:Create(Frame, TweenInfo.new(0.4, Enum.EasingStyle.Quad), {BackgroundTransparency = 0}):Play()
    TweenService:Create(TextLabel, TweenInfo.new(0.4, Enum.EasingStyle.Quad), {TextTransparency = 0}):Play()
    task.spawn(function()
        for i = duration, 1, -1 do
            TextLabel.Text = message .. "\nClosing in " .. i .. "s"
            task.wait(1)
        end
        TweenService:Create(Frame, TweenInfo.new(0.4, Enum.EasingStyle.Quad), {BackgroundTransparency = 1}):Play()
        TweenService:Create(TextLabel, TweenInfo.new(0.4, Enum.EasingStyle.Quad), {TextTransparency = 1}):Play()
        task.wait(0.5)
        NotificationGui:Destroy()
    end)
end

showNotification("Teleportation GUI Activated!", 5)

Features & Information

uhh ya bassicly teleport to end maybe is a bit buggy but easy money

Community Comments (2)

zamilgamer24zamilgamer24Feb 6, 2026

Bro can you make a op script for cars rng

zamilgamer24zamilgamer24Feb 6, 2026

W script

More Scripts for Deathrun RNG 💀