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.

Tp to player

Version / Update: v1.0.0
Download / Script Link
--// Services
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local TeleportService = game:GetService("TeleportService")

local LocalPlayer = Players.LocalPlayer

--// GUI Creation
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
ScreenGui.ResetOnSpawn = false

local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0, 300, 0, 220)
MainFrame.Position = UDim2.new(1, 0, 0.5, -110) -- Start offscreen
MainFrame.AnchorPoint = Vector2.new(1, 0)
MainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Draggable = true
MainFrame.Parent = ScreenGui

-- Rounded corners
Instance.new("UICorner", MainFrame)

-- Close Button
local CloseButton = Instance.new("TextButton")
CloseButton.Size = UDim2.new(0, 30, 0, 30)
CloseButton.Position = UDim2.new(1, -35, 0, 5)
CloseButton.Text = "X"
CloseButton.TextScaled = true
CloseButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
CloseButton.Parent = MainFrame
Instance.new("UICorner", CloseButton)

-- Tab Buttons
local TabFrame = Instance.new("Frame")
TabFrame.Size = UDim2.new(1, 0, 0, 30)
TabFrame.BackgroundTransparency = 1
TabFrame.Parent = MainFrame

local TPPlayerTab = Instance.new("TextButton")
TPPlayerTab.Size = UDim2.new(0.5, -2, 1, 0)
TPPlayerTab.Position = UDim2.new(0, 0, 0, 0)
TPPlayerTab.Text = "TP to Player"
TPPlayerTab.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
TPPlayerTab.Parent = TabFrame

local TPGameTab = Instance.new("TextButton")
TPGameTab.Size = UDim2.new(0.5, -2, 1, 0)
TPGameTab.Position = UDim2.new(0.5, 2, 0, 0)
TPGameTab.Text = "TP to Player's Game"
TPGameTab.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
TPGameTab.Parent = TabFrame

-- Content Frames
local TPPlayerFrame = Instance.new("Frame")
TPPlayerFrame.Size = UDim2.new(1, -10, 1, -70)
TPPlayerFrame.Position = UDim2.new(0, 5, 0, 35)
TPPlayerFrame.BackgroundTransparency = 1
TPPlayerFrame.Parent = MainFrame

local TPGameFrame = TPPlayerFrame:Clone()
TPGameFrame.Parent = MainFrame
TPGameFrame.Visible = false

-- Player Input
local PlayerBox1 = Instance.new("TextBox")
PlayerBox1.Size = UDim2.new(1, -10, 0, 30)
PlayerBox1.Position = UDim2.new(0, 5, 0, 5)
PlayerBox1.PlaceholderText = "Enter Player Name"
PlayerBox1.Parent = TPPlayerFrame

local TPButton1 = Instance.new("TextButton")
TPButton1.Size = UDim2.new(1, -10, 0, 30)
TPButton1.Position = UDim2.new(0, 5, 0, 45)
TPButton1.Text = "Teleport"
TPButton1.BackgroundColor3 = Color3.fromRGB(100, 100, 200)
TPButton1.Parent = TPPlayerFrame

-- Game Input
local PlayerBox2 = PlayerBox1:Clone()
PlayerBox2.Parent = TPGameFrame

local TPButton2 = TPButton1:Clone()
TPButton2.Parent = TPGameFrame
TPButton2.Position = UDim2.new(0, 5, 0, 45)
TPButton2.Text = "Join Player's Game"

-- Version Label
local VersionLabel = Instance.new("TextButton")
VersionLabel.Size = UDim2.new(1, -10, 0, 20)
VersionLabel.Position = UDim2.new(0, 5, 1, -25)
VersionLabel.Text = "V1"
VersionLabel.TextScaled = true
VersionLabel.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
VersionLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
VersionLabel.Parent = MainFrame
Instance.new("UICorner", VersionLabel)

-- Changelog Frame
local ChangelogFrame = Instance.new("Frame")
ChangelogFrame.Size = UDim2.new(1, -20, 0, 80)
ChangelogFrame.Position = UDim2.new(0, 10, 1, -110)
ChangelogFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
ChangelogFrame.Visible = false
ChangelogFrame.Parent = MainFrame
Instance.new("UICorner", ChangelogFrame)

local ChangelogText = Instance.new("TextLabel")
ChangelogText.Size = UDim2.new(1, -10, 1, -10)
ChangelogText.Position = UDim2.new(0, 5, 0, 5)
ChangelogText.BackgroundTransparency = 1
ChangelogText.TextColor3 = Color3.fromRGB(220,220,220)
ChangelogText.TextXAlignment = Enum.TextXAlignment.Left
ChangelogText.TextYAlignment = Enum.TextYAlignment.Top
ChangelogText.TextWrapped = true
ChangelogText.TextSize = 14
ChangelogText.Text = "V1\n- Fixed GUI\n- Fixed X button\n- Fixed clashing game"
ChangelogText.Parent = ChangelogFrame

--// Logic

-- Slide in animation
TweenService:Create(MainFrame, TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
Position = UDim2.new(0.5, 150, 0.5, -110)
}):Play()

-- Close Button
CloseButton.MouseButton1Click:Connect(function()
MainFrame.Visible = false
end)

-- Tab Switching
TPPlayerTab.MouseButton1Click:Connect(function()
TPPlayerFrame.Visible = true
TPGameFrame.Visible = false
end)

TPGameTab.MouseButton1Click:Connect(function()
TPPlayerFrame.Visible = false
TPGameFrame.Visible = true
end)

-- Teleport to Player in same game
TPButton1.MouseButton1Click:Connect(function()
local targetName = PlayerBox1.Text
local targetPlayer = Players:FindFirstChild(targetName)
if targetPlayer and targetPlayer.Character and targetPlayer.Character:FindFirstChild("HumanoidRootPart") then
LocalPlayer.Character:MoveTo(targetPlayer.Character.HumanoidRootPart.Position + Vector3.new(3,0,0))
end
end)

-- Placeholder for "TP to Player's Game"
TPButton2.MouseButton1Click:Connect(function()
warn("Teleport to another player's game requires server + API, not client-only.")
end)

-- Toggle changelog when clicking version label
VersionLabel.MouseButton1Click:Connect(function()
ChangelogFrame.Visible = not ChangelogFrame.Visible
end)
[ View More ]
78f85eca-5867-43cb-8553-4df4d48769a3.webp


It isnt that bad. it works at least. but it teleports you above the user you teleproted to.
 
Works on mobile
  1. Yes
Back
Top