tp to win open source
Key Required

tp to win open source

Deathrun RNG 💀1w691w69 742 views 103 executesUpdated Jan 11, 2026
5.0/ 5(1 votes)
10100% Positive
Lua Script•309 lines (9758 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 = "💎 1w69"
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, 200, 83)
TeleportButton.TextColor3 = Color3.fromRGB(255, 255, 255)
TeleportButton.Text = "🚀 تفعيل النقل التلقائي"
TeleportButton.TextSize = 14
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 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)

TranslateButton.TouchTap: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)

CloseButton.TouchTap: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, 200, 83)
        if teleportThread then
            task.cancel(teleportThread)
            teleportThread = nil
        end
    end
end)

TeleportButton.TouchTap: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, 200, 83)
        if teleportThread then
            task.cancel(teleportThread)
            teleportThread = nil
        end
    end
end)

TeleportButton.MouseEnter:Connect(function()
    TweenService:Create(TeleportButton, TweenInfo.new(0.2), {
        BackgroundColor3 = settings.enabled and Color3.fromRGB(220, 0, 0) or Color3.fromRGB(0, 220, 100)
    }):Play()
end)

TeleportButton.MouseLeave:Connect(function()
    TweenService:Create(TeleportButton, TweenInfo.new(0.2), {
        BackgroundColor3 = settings.enabled and Color3.fromRGB(255, 50, 50) or Color3.fromRGB(0, 200, 83)
    }):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)

Features & Information

Open source and free, you have the right to modify or publish. One button saves you time to earn money; it supports both Arabic and English languages. مفتوح المصدر ومجاني لك الحق في التعديل او النشر زر واحد يوفر لك الوقت لكسب المال؛ وهو يدعم اللغتين العربية والإنجليزية.

Community Comments (0)

No comments yet for this script.

More Scripts for Deathrun RNG 💀