1,211 views
Description
This is an open source script for the Diving Legends Roblox game and you can turn on auto tp in it.
Features
- + Auto TP
--// SERVICES
local Players = game:GetService("Players")
local player = Players.LocalPlayer
--// VARIABLES
local running = false
local folder = workspace:WaitForChild("_LocalCollectableObjects")
--// GET ROOT
local function getRoot()
local char = player.Character or player.CharacterAdded:Wait()
return char:WaitForChild("HumanoidRootPart")
end
--// SORT CLOSE → FAR
local function getSortedObjects()
local root = getRoot()
local objs = {}
for _, v in pairs(folder:GetChildren()) do
if v:IsA("BasePart") then
table.insert(objs, v)
elseif v:FindFirstChildWhichIsA("BasePart") then
table.insert(objs, v:FindFirstChildWhichIsA("BasePart"))
end
end
table.sort(objs, function(a, b)
return (a.Position - root.Position).Magnitude < (b.Position - root.Position).Magnitude
end)
return objs
end
--// TP LOOP
task.spawn(function()
while true do
if running then
local root = getRoot()
local sorted = getSortedObjects()
for _, obj in ipairs(sorted) do
if not running then break end
if obj and obj.Parent then
root.CFrame = obj.CFrame
task.wait(0.02) -- VERY FAST (adjust if needed)
end
end
end
task.wait()
end
end)
--// GUI
local gui = Instance.new("ScreenGui")
gui.Name = "OpenSourceGUI"
gui.Parent = game.CoreGui
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 200, 0, 120)
frame.Position = UDim2.new(0.4, 0, 0.4, 0)
frame.BackgroundColor3 = Color3.fromRGB(25,25,25)
frame.Active = true
frame.Draggable = true
frame.Parent = gui
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1,0,0,30)
title.Text = "Made by _OpenSource_"
title.TextColor3 = Color3.new(1,1,1)
title.BackgroundTransparency = 1
title.Parent = frame
local button = Instance.new("TextButton")
button.Size = UDim2.new(0.8,0,0,40)
button.Position = UDim2.new(0.1,0,0.4,0)
button.Text = "Auto TP: OFF"
button.BackgroundColor3 = Color3.fromRGB(40,40,40)
button.TextColor3 = Color3.new(1,1,1)
button.Parent = frame
--// TOGGLE
button.MouseButton1Click:Connect(function()
running = not running
button.Text = running and "Auto TP: ON" or "Auto TP: OFF"
end)
Script worked? 🚀 Boost it to #1 so others find it too.
Similar Scripts
1,728
4 months ago
Key System
Diving Legends
Auto TP Collect Coins
3,769
7 months ago
Free
diving legends
diving legends Script (No Key) - Inf Spins
559
14 hours ago
Free
Forsaken
Kuurax hub Forsaken Script OP (No Key)
884
21 hours ago
Free
Rivals
LowHub Rivals script keyless | Aimbot, Hitbox
662
21 hours ago
Free
Tap Simulator REBORN
Tap Simulator REBORN keyless Script By Kuurax Hub
566
22 hours ago
Free
Flee the Facility
Flee the Facility script by Pinokio | Beast mode
🚀
Log in to boost
Boosting rockets this script to #1 on the homepage. A free account takes 30 seconds.
Log in
🚀
Out of boosts!
Grab boosts and rocket your favorite scripts to the top — plus join the booster wall with the RGB ring.
⚡ Go Pro — 10 boosts/month + zero ads
🚀
Boost this script?
It jumps to #1 in Recent Scripts and your avatar joins the booster wall.
🚀
Boosted! You're awesome 💜
Comments (0)
Log in to add a comment.