0% found this document useful (0 votes)
102 views11 pages

Hub

The document is a Lua script for a Roblox game that implements teleportation and delivery functionalities for a player character. It includes various functions for setting up the character, calculating teleportation amounts based on network latency, and performing teleportation to delivery locations. Additionally, it creates a user interface with visual elements to provide feedback to the player during teleportation actions.

Uploaded by

eiteakooder
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
102 views11 pages

Hub

The document is a Lua script for a Roblox game that implements teleportation and delivery functionalities for a player character. It includes various functions for setting up the character, calculating teleportation amounts based on network latency, and performing teleportation to delivery locations. Additionally, it creates a user interface with visual elements to provide feedback to the player during teleportation actions.

Uploaded by

eiteakooder
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 11

local TweenService = game:GetService("TweenService")

local UIS = game:GetService("UserInputService")


local RunService = game:GetService("RunService")
local Lighting = game:GetService("Lighting")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer

local key = "Leap2476"


local discordLink = "what my YouTube name?"
local scriptToLoad = [[
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
local Lighting = game:GetService("Lighting")
local player = Players.LocalPlayer
local random = Random.new()

--// Configuration
local DEBUG = false
local tpAmt
local void = CFrame.new(0, -3.4028234663852886e+38, 0)
local teleporting

local function DebugInfo(mode, content, value)


if not DEBUG then return end
if mode == "warn" then
warn("[BsixTP DEBUG]:", content, value or "")
elseif mode == "print" then
print("[BsixTP DEBUG]:", content, value or "")
else
warn("[BsixTP DEBUG]: Invalid debug type.")
end
end

--// Player & Character setup


local backpack = player:WaitForChild("Backpack")
local char, humanoid, hrp

local function GetCharacter()


return player.Character or player.CharacterAdded:Wait()
end

local function SetupCharacter()


char = GetCharacter()
humanoid = char:WaitForChild("Humanoid")
hrp = char:WaitForChild("HumanoidRootPart")
backpack = player:WaitForChild("Backpack")
DebugInfo("print", "Character setup completed for", player.Name)
end

SetupCharacter()
player.CharacterAdded:Connect(function()
SetupCharacter()
end)

--// Calculate tpAmt from Latency


task.spawn(function()
while true do
local ping = player:GetNetworkPing() * 1000
tpAmt = math.clamp(math.floor(ping * 0.8), 10, 150)
if DEBUG then
DebugInfo("print", "Ping: " .. math.floor(ping) .. "ms | tpAmt:",
tpAmt)
end
RunService.Heartbeat:Wait()
end
end)

local function TP(position)


if not teleporting then
teleporting = true
if typeof(position) == "CFrame" then
hrp.CFrame = position + Vector3.new(
random:NextNumber(-0.0001, 0.0001),
random:NextNumber(-0.0001, 0.0001),
random:NextNumber(-0.0001, 0.0001)
)
RunService.Heartbeat:Wait()
teleporting = false
end
else
DebugInfo("warn", "You are already teleporting", "teleporting")
end
end

local function FindDelivery()


local plots = workspace:FindFirstChild("Plots")
if not plots then
DebugInfo("warn", "Plots folder not found in workspace", nil)
return
end
for _, plot in pairs(plots:GetChildren()) do
local sign = plot:FindFirstChild("PlotSign")
if sign then
local yourBase = sign:FindFirstChild("YourBase")
if yourBase and yourBase.Enabled then
local hitbox = plot:FindFirstChild("DeliveryHitbox")
if hitbox then return hitbox end
end
end
end
DebugInfo("warn", "No valid DeliveryHitbox found", nil)
end
local function DeliverBrainrot(statusLabel)
local hitbox = FindDelivery()
if not hitbox then
statusLabel.Text = "Error: DeliveryHitbox not found"
statusLabel.TextColor3 = Color3.fromRGB(255, 80, 80)
TweenService:Create(statusLabel, TweenInfo.new(0.3), {TextTransparency =
0}):Play()
task.wait(2)
TweenService:Create(statusLabel, TweenInfo.new(0.3), {TextTransparency =
1}):Play()
return
end

DebugInfo("print", "DeliveryHitbox successfully found", hitbox)

local target = hitbox.CFrame * CFrame.new(0, -3, 0)

local i = 0
while i < (tpAmt or 70) do
TP(target)
i += 1
end

for _ = 1, 2 do
TP(void)
end

i = 0
while i < (tpAmt / 16) do
TP(target)
i += 1
end

task.wait(1)

local distance = (hrp.Position - target.Position).Magnitude


if distance <= 30 then
DebugInfo("print", "Teleport succeeded", distance)
statusLabel.Text = "Teleport Succeeded!"
statusLabel.TextColor3 = Color3.fromRGB(0, 255, 100)
else
DebugInfo("warn", "Teleport failed", distance)
statusLabel.Text = "Teleport Failed: Too far (" .. math.floor(distance) ..
")"
statusLabel.TextColor3 = Color3.fromRGB(255, 80, 80)
end
TweenService:Create(statusLabel, TweenInfo.new(0.3), {TextTransparency =
0}):Play()
task.wait(2)
TweenService:Create(statusLabel, TweenInfo.new(0.3), {TextTransparency =
1}):Play()
end

local function TPNearestBase(statusLabel)


local plotsFolder = workspace:FindFirstChild("Plots")
if not plotsFolder then
DebugInfo("warn", "Missing folder", "Plots")
statusLabel.Text = "Error: Plots folder not found"
statusLabel.TextColor3 = Color3.fromRGB(255, 80, 80)
TweenService:Create(statusLabel, TweenInfo.new(0.3), {TextTransparency =
0}):Play()
task.wait(2)
TweenService:Create(statusLabel, TweenInfo.new(0.3), {TextTransparency =
1}):Play()
return
end

local closestBrainrot = nil


local shortestDistance = math.huge

for _, plot in pairs(plotsFolder:GetChildren()) do


local plotSign = plot:FindFirstChild("PlotSign")
if plotSign then
local plotSignText =
plotSign:FindFirstChild("SurfaceGui"):FindFirstChild("Frame"):FindFirstChild("TextL
abel")
if plotSignText and plotSignText.ContentText ~= "Empty Base" then
local yourBase = plotSign:FindFirstChild("YourBase")
if yourBase and not yourBase.Enabled then
local podiums = plot:FindFirstChild("AnimalPodiums")
if podiums then
for _, brainrot in pairs(podiums:GetChildren()) do
if brainrot:IsA("Model") and
brainrot:FindFirstChild("Base"):FindFirstChild("Spawn") then
local brainrotSpawn = brainrot.Base.Spawn
local distance = (brainrotSpawn.Position -
hrp.Position).Magnitude
if distance < shortestDistance then
shortestDistance = distance
closestBrainrot = brainrotSpawn
end
end
end
end
end
end
end
end

if not closestBrainrot then


DebugInfo("warn", "No valid podium found", nil)
statusLabel.Text = "Error: No valid podium found"
statusLabel.TextColor3 = Color3.fromRGB(255, 80, 80)
TweenService:Create(statusLabel, TweenInfo.new(0.3), {TextTransparency =
0}):Play()
task.wait(2)
TweenService:Create(statusLabel, TweenInfo.new(0.3), {TextTransparency =
1}):Play()
return
end
DebugInfo("print", "Nearest podium found", closestBrainrot)

local target = closestBrainrot.CFrame * CFrame.new(0, 2, 0)

local i = 0
while i < (tpAmt or 70) do
TP(target)
i += 1
end

for _ = 1, 2 do
TP(void)
end

i = 0
while i < (tpAmt / 16) do
TP(target)
i += 1
end

task.wait(1)

local distance = (hrp.Position - target.Position).Magnitude


if distance <= 30 then
DebugInfo("print", "Teleport succeeded", distance)
statusLabel.Text = "Teleport Succeeded!"
statusLabel.TextColor3 = Color3.fromRGB(0, 255, 100)
else
DebugInfo("warn", "Teleport failed", distance)
statusLabel.Text = "Teleport Failed: Too far (" .. math.floor(distance) ..
")"
statusLabel.TextColor3 = Color3.fromRGB(255, 80, 80)
end
TweenService:Create(statusLabel, TweenInfo.new(0.3), {TextTransparency =
0}):Play()
task.wait(2)
TweenService:Create(statusLabel, TweenInfo.new(0.3), {TextTransparency =
1}):Play()
end

local function TweenSteal(statusLabel)


local TELEPORT_ITERATIONS = 85
local VOID_CFRAME = CFrame.new(0, -3e40, 0)
local MIN_RANDOM_OFFSET = -0.0008
local MAX_RANDOM_OFFSET = 0.0008
local JITTER_RANGE = 0.0002

local function executeStealthMovement(targetCF, steps)


if not hrp or typeof(targetCF) ~= "CFrame" then
DebugInfo("warn", "Invalid HRP or target CFrame", nil)
return false
end

local currentPos = hrp.Position


local targetPos = targetCF.Position
local startTime = tick()

for i = 1, steps do
local progress = (tick() - startTime) / (steps * 0.02)
progress = math.min(progress, 1)

local curvedProgress = progress * progress * (3 - 2 * progress)

local newPos = currentPos:Lerp(targetPos, curvedProgress)


newPos += Vector3.new(
random:NextNumber(-JITTER_RANGE, JITTER_RANGE),
random:NextNumber(-JITTER_RANGE, JITTER_RANGE),
random:NextNumber(-JITTER_RANGE, JITTER_RANGE)
)

hrp.CFrame = CFrame.new(newPos) * (hrp.CFrame - hrp.Position)

local waitTime = random:NextNumber(0.005, 0.015)


task.wait(waitTime)
end
return true
end

local function findDeliverySpot()


for _, v in ipairs(workspace.Plots:GetDescendants()) do
if v.Name == "DeliveryHitbox" and v.Parent:FindFirstChild("PlotSign")
then
if v.Parent.PlotSign:FindFirstChild("YourBase") and
v.Parent.PlotSign.YourBase.Enabled then
return v
end
end
end
DebugInfo("warn", "No valid DeliveryHitbox found for TweenSteal", nil)
return nil
end

local delivery = findDeliverySpot()


if not delivery then
statusLabel.Text = "Error: DeliveryHitbox not found"
statusLabel.TextColor3 = Color3.fromRGB(255, 80, 80)
TweenService:Create(statusLabel, TweenInfo.new(0.3), {TextTransparency =
0}):Play()
task.wait(2)
TweenService:Create(statusLabel, TweenInfo.new(0.3), {TextTransparency =
1}):Play()
return
end

DebugInfo("print", "DeliveryHitbox found for TweenSteal", delivery)

local targetPos = delivery.CFrame * CFrame.new(0, random:NextInteger(-3, -1),


0)

for _ = 1, 3 do
task.spawn(function()
local success = executeStealthMovement(targetPos, TELEPORT_ITERATIONS)
if success then
for _ = 1, 3 do
hrp.CFrame = VOID_CFRAME
task.wait(random:NextNumber(0.05, 0.1))
hrp.CFrame = targetPos
task.wait(random:NextNumber(0.05, 0.1))
end
end
task.wait(random:NextNumber(0.1, 0.3))
end)
end

task.wait(1)
local distance = (hrp.Position - targetPos.Position).Magnitude
if distance <= 30 then
DebugInfo("print", "TweenSteal succeeded", distance)
statusLabel.Text = "TweenSteal Succeeded!"
statusLabel.TextColor3 = Color3.fromRGB(0, 255, 100)
else
DebugInfo("warn", "TweenSteal failed", distance)
statusLabel.Text = "TweenSteal Failed: Too far (" ..
math.floor(distance) .. ")"
statusLabel.TextColor3 = Color3.fromRGB(255, 80, 80)
end
TweenService:Create(statusLabel, TweenInfo.new(0.3), {TextTransparency =
0}):Play()
task.wait(2)
TweenService:Create(statusLabel, TweenInfo.new(0.3), {TextTransparency =
1}):Play()
end

local ScreenGui = Instance.new("ScreenGui")


ScreenGui.Name = "BsixTPGui"
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
ScreenGui.IgnoreGuiInset = true
ScreenGui.DisplayOrder = 999
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
DebugInfo("print", "BsixTPGui created", ScreenGui.Name)

local Blur = Instance.new("BlurEffect")


Blur.Name = "BsixTPBlur"
Blur.Size = 0
Blur.Parent = workspace
DebugInfo("print", "BsixTPBlur created", Blur.Name)

local Frame = Instance.new("Frame")


Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.fromRGB(10, 10, 15)
Frame.BorderSizePixel = 0
Frame.AnchorPoint = Vector2.new(0.5, 0.5)
Frame.Position = UDim2.new(0.5, 0, 0.5, 0)
Frame.Size = UDim2.new(0.0, 0, 0.0, 0)
Frame.ClipsDescendants = true
Frame.BackgroundTransparency = 1

local Gradient = Instance.new("UIGradient")


Gradient.Color = ColorSequence.new({
ColorSequenceKeypoint.new(0, Color3.fromRGB(20, 20, 30)),
ColorSequenceKeypoint.new(1, Color3.fromRGB(10, 10, 20))
})
Gradient.Rotation = 45
Gradient.Parent = Frame

local UICorner = Instance.new("UICorner")


UICorner.CornerRadius = UDim.new(0, 16)
UICorner.Parent = Frame

local DropShadow = Instance.new("ImageLabel")


DropShadow.Name = "DropShadow"
DropShadow.Parent = Frame
DropShadow.AnchorPoint = Vector2.new(0.5, 0.5)
DropShadow.BackgroundTransparency = 1
DropShadow.Position = UDim2.new(0.5, 0, 0.5, 6)
DropShadow.Size = UDim2.new(1.0, 17, 1.0, 17)
DropShadow.Image = "rbxassetid://6014261993"
DropShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
DropShadow.ImageTransparency = 0.6
DropShadow.ScaleType = Enum.ScaleType.Slice
DropShadow.SliceCenter = Rect.new(10, 10, 118, 118)
DropShadow.ZIndex = -1
DropShadow.Visible = false

local TitleBar = Instance.new("Frame")


TitleBar.Name = "TitleBar"
TitleBar.Parent = Frame
TitleBar.BackgroundColor3 = Color3.fromRGB(15, 15, 20)
TitleBar.BorderSizePixel = 0
TitleBar.Size = UDim2.new(1.0, 0, 0.0, 28)
TitleBar.ZIndex = 2

local TitleBarGradient = Instance.new("UIGradient")


TitleBarGradient.Color = ColorSequence.new({
ColorSequenceKeypoint.new(0, Color3.fromRGB(25, 25, 35)),
ColorSequenceKeypoint.new(1, Color3.fromRGB(15, 15, 25))
})
TitleBarGradient.Parent = TitleBar

local TitleBarCorner = Instance.new("UICorner")


TitleBarCorner.CornerRadius = UDim.new(0, 16)
TitleBarCorner.Parent = TitleBar

local TitleLabel = Instance.new("TextLabel")


TitleLabel.Name = "Title"
TitleLabel.Parent = TitleBar
TitleLabel.BackgroundTransparency = 1
TitleLabel.Size = UDim2.new(1.0, -56, 1.0, 0)
TitleLabel.Position = UDim2.new(0.0, 10, 0.0, 0)
TitleLabel.Font = Enum.Font.GothamBlack
TitleLabel.Text = "Bsix TP"
TitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
TitleLabel.TextSize = 20
TitleLabel.TextXAlignment = Enum.TextXAlignment.Left
TitleLabel.TextTransparency = 1

local ButtonFrame = Instance.new("Frame")


ButtonFrame.Parent = TitleBar
ButtonFrame.BackgroundTransparency = 1
ButtonFrame.Size = UDim2.new(0.0, 56, 1.0, 0)
ButtonFrame.Position = UDim2.new(1.0, -56, 0.0, 0)

local MinimizeButton = Instance.new("TextButton")


MinimizeButton.Name = "MinimizeButton"
MinimizeButton.Parent = ButtonFrame
MinimizeButton.AnchorPoint = Vector2.new(0.5, 0.5)
MinimizeButton.BackgroundTransparency = 1
MinimizeButton.Position = UDim2.new(0.65, 0, 0.5, 0)
MinimizeButton.Size = UDim2.new(0.0, 17, 0.0, 17)
MinimizeButton.Font = Enum.Font.GothamBold
MinimizeButton.Text = "—"
MinimizeButton.TextColor3 = Color3.fromRGB(255, 204, 0)
MinimizeButton.TextSize = 16
MinimizeButton.TextTransparency = 1

local CloseButton = Instance.new("TextButton")


CloseButton.Name = "CloseButton"
CloseButton.Parent = ButtonFrame
CloseButton.AnchorPoint = Vector2.new(0.5, 0.5)
CloseButton.BackgroundTransparency = 1
CloseButton.Position = UDim2.new(0.85, 0, 0.5, 0)
CloseButton.Size = UDim2.new(0.0, 17, 0.0, 17)
CloseButton.Font = Enum.Font.GothamBold
CloseButton.Text = "X"
CloseButton.TextColor3 = Color3.fromRGB(255, 80, 80)
CloseButton.TextSize = 16
CloseButton.TextTransparency = 1

local Content = Instance.new("Frame")


Content.Name = "Content"
Content.Parent = Frame
Content.BackgroundTransparency = 1
Content.Position = UDim2.new(0.0, 0, 0.0, 28)
Content.Size = UDim2.new(1.0, 0, 1.0, -28)

local DeliveryButton = Instance.new("TextButton")


DeliveryButton.Name = "DeliveryButton"
DeliveryButton.Parent = Content
DeliveryButton.BackgroundColor3 = Color3.fromRGB(0, 120, 255)
DeliveryButton.TextColor3 = Color3.fromRGB(255, 255, 255)
DeliveryButton.Position = UDim2.new(0.1, 0, 0.15, 0)
DeliveryButton.Size = UDim2.new(0.8, 0, 0.0, 35)
DeliveryButton.Font = Enum.Font.GothamSemibold
DeliveryButton.Text = "TP TO DELIVERY BOX"
DeliveryButton.TextSize = 18
DeliveryButton.TextWrapped = true
DeliveryButton.TextTransparency = 1
DeliveryButton.AutoButtonColor = false

local UICorner_Delivery = Instance.new("UICorner")


UICorner_Delivery.CornerRadius = UDim.new(0, 12)
UICorner_Delivery.Parent = DeliveryButton

local DeliveryStroke = Instance.new("UIStroke")


DeliveryStroke.Parent = DeliveryButton
DeliveryStroke.Color = Color3.fromRGB(0, 80, 200)
DeliveryStroke.Thickness = 2
DeliveryStroke.Transparency = 0.5

local BaseButton = Instance.new("TextButton")


BaseButton.Name = "BaseButton"
BaseButton.Parent = Content
BaseButton.BackgroundColor3 = Color3.fromRGB(0, 120, 255)
BaseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
BaseButton.Position = UDim2.new(0.1, 0, 0.35, 0)
BaseButton.Size = UDim2.new(0.8, 0, 0.0, 35)
BaseButton.Font = Enum.Font.GothamSemibold
BaseButton.Text = "TP INSIDE NEAREST BASE"
BaseButton.TextSize = 18
BaseButton.TextWrapped = true
BaseButton.TextTransparency = 1
BaseButton.AutoButtonColor = false

local UICorner_Base = Instance.new("UICorner")


UICorner_Base.CornerRadius = UDim.new(0, 12)
UICorner_Base.Parent = BaseButton

local BaseStroke = Instance.new("UIStroke")


BaseStroke.Parent = BaseButton
BaseStroke.Color = Color3.fromRGB(0, 80, 200)
BaseStroke.Thickness = 2
BaseStroke.Transparency = 0.5

local TweenStealButton = Instance.new("TextButton")


TweenStealButton.Name = "TweenStealButton"
TweenStealButton.Parent = Content
TweenStealButton.BackgroundColor3 = Color3.fromRGB(0, 120, 255)
TweenStealButton.TextColor3 = Color3.fromRGB(255, 255, 255)
TweenStealButton.Position = UDim2.new(0.1, 0, 0.55, 0)
TweenStealButton.Size = UDim2.new(0.8, 0, 0.0, 35)
TweenStealButton.Font = Enum.Font.GothamSemibold
TweenStealButton.Text = "TWEEN STEAL"
TweenStealButton.TextSize = 18
TweenStealButton.TextWrapped = true
TweenStealButton.TextTransparency = 1
TweenStealButton.AutoButtonColor = false

local UICorner_TweenSteal = Instance.new("UICorner")


UICorner_TweenSteal.CornerRadius = UDim.new(0, 12)
UICorner_TweenSteal.Parent = TweenStealButton

local TweenStealStroke = Instance.new("UIStroke")


TweenStealStroke.Parent = TweenStealButton
TweenStealStroke.Color = Color3.fromRGB(0, 80, 200)
TweenStealStroke.Thickness = 2
TweenStealStroke.Transparency = 0.5

local StatusLabel = Instance.new("TextLabel")


StatusLabel.Name = "StatusLabel"
StatusLabel.Parent = Content
StatusLabel.BackgroundTransparency = 1
StatusLabel.Size = UDim2.new(0.8, 0, 0.0, 21)
StatusLabel.Position = UDim2.new(0.1, 0, 0.75, 0)
StatusLabel.Font = Enum.Font.Gotham
StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
StatusLabel.TextSize = 14
StatusLabel.TextTransparency = 1
StatusLabel.Text = ""
StatusLabel.TextWrapped = true

local function createHoverEffect(button, stroke)


button.MouseEnter:Connect(function()
TweenService:Create(button, TweenInfo.new(0.2,
Enum.EasingStyle.Exponential), {
BackgroundColor3 = Color3.fromRGB(0, 140, 255),
TextColor3 = Color3.fromRGB(255, 255, 255)
}):Play()
TweenService:Create(stroke, TweenInfo.new(0.2,
Enum.EasingStyle.Exponential), {
Color = Color3.fromRGB(0, 100, 220),
Thickness = 3,
Transparency = 0.2
}):Play()
end)
button.MouseLeave:Connect(function()
TweenService:Create(button, TweenInfo.new(0.2,
Enum.EasingStyle.Exponential), {
BackgroundColor3 = Color3.fromRGB(0, 120, 255),
TextColor3 = Color3.fromRGB(255, 255, 255)
}):Play()
TweenService:Create(stroke, TweenInfo.new(0.2,
Enum.EasingStyle.Exponential), {

You might also like