What's new
Heapleak - Scripthub

Get the most out of HeapLeak by creating a free account! Once signed in, you’ll gain full access to restricted content, be able to share your own scripts, and participate in our member-only discussions.

OPENSOURCE OP teleport to top

Version / Update: v1.0.0
Download / Script Link
local Rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))()

local Window = Rayfield:CreateWindow({
Name = "discord.gg/KWcpdvbY",
LoadingTitle = "just join pls",
LoadingSubtitle = "discord.gg/KWcpdvbY",
ConfigurationSaving = {
Enabled = false,
}
})

local MainTab = Window:CreateTab("Main", 4483362458)

local plr = game.Players.LocalPlayer

local function getTop()
local ws = workspace
local tower = ws:FindFirstChild("Tower") or ws:FindFirstChild("tower")
local scope = tower or ws

local top = nil
local y = -1e9

for _, v in ipairs(scope:GetDescendants()) do
if v:IsA("BasePart") and v.Name == "ParticleBrick" then
if v.Position.Y > y then
y = v.Position.Y
top = v
end
end
end

if top then
return top.CFrame + Vector3.new(0, 3, 0)
end

y = -1e9

for _, v in ipairs(scope:GetDescendants()) do
if v:IsA("BasePart") and v:FindFirstChildOfClass("TouchTransmitter") then
local n = v.Name:lower()
if n:find("finish") or n:find("goal") or n:find("win") or n:find("end") then
if v.Position.Y > y then
y = v.Position.Y
top = v
end
end
end
end

if top then
return top.CFrame + Vector3.new(0, 3, 0)
end

y = -1e9

for _, v in ipairs(scope:GetDescendants()) do
if v:IsA("BasePart") and v.Anchored and v.CanCollide and v.Transparency < 0.5 then
local n = v.Name:lower()
if not (n:find("kill") or n:find("lava") or n:find("death") or n:find("damage")) then
local s = v.Size
if s.Y > 0.3 and s.Y < 5 and (s.X > 8 or s.Z > 8) then
if v.Position.Y > y then
y = v.Position.Y
top = v
end
end
end
end
end

if top then
return top.CFrame + Vector3.new(0, 3, 0)
end
end

local function tp()
local char = plr.Character
if not char then
Rayfield:Notify({
Title = "discord.gg/KWcpdvbY",
Content = "discord.gg/KWcpdvbY",
Duration = 2.5
})
return
end

local hrp = char:FindFirstChild("HumanoidRootPart")
local hum = char:FindFirstChildOfClass("Humanoid")

if not hrp or not hum then
Rayfield:Notify({
Title = "discord.gg/KWcpdvbY",
Content = "discord.gg/KWcpdvbY",
Duration = 2
})
return
end

local cf = getTop()
if not cf then
Rayfield:Notify({
Title = "discord.gg/KWcpdvbY",
Content = "discord.gg/KWcpdvbY",
Duration = 3.5
})
return
end

local _, ry = hrp.CFrame:ToOrientation()
local dest = CFrame.new(cf.Position) * CFrame.Angles(0, ry, 0)

hrp.AssemblyLinearVelocity = Vector3.zero
hrp.AssemblyAngularVelocity = Vector3.zero
hrp.CFrame = dest
hum:ChangeState(Enum.HumanoidStateType.Landed)
task.wait(0.05)
hrp.AssemblyLinearVelocity = Vector3.zero
hrp.AssemblyAngularVelocity = Vector3.zero

Rayfield:Notify({
Title = "discord.gg/KWcpdvbY",
Content = "discord.gg/KWcpdvbY",
Duration = 2.5
})
end

MainTab:CreateButton({
Name = "Teleport to Top",
Callback = tp
})

Rayfield:Notify({
Title = "Loaded!",
Content = "join discord.gg/KWcpdvbY",
Duration = 4
})
[ View More ]
4500532d-d152-431d-9bab-4889bd04f026.webp


teleport to the top of the obby
 
Back
Top