Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "TeleportSystemGUI"
- screenGui.ResetOnSpawn = false
- screenGui.Parent = player:WaitForChild("PlayerGui")
- -- Main Frame
- local main = Instance.new("Frame")
- main.Name = "MainFrame"
- main.Size = UDim2.new(0.8, 0, 0.8, 0)
- main.Position = UDim2.new(0.1, 0, 0.1, 0)
- main.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- main.BorderSizePixel = 0
- main.Active = true
- main.Draggable = true
- main.Visible = true
- main.Parent = screenGui
- Instance.new("UICorner", main).CornerRadius = UDim.new(0, 8)
- local stroke = Instance.new("UIStroke", main)
- stroke.Thickness = 2
- stroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- stroke.LineJoinMode = Enum.LineJoinMode.Round
- task.spawn(function()
- while true do
- for h = 0, 1, 0.01 do
- stroke.Color = Color3.fromHSV(h, 1, 1)
- task.wait(0.03)
- end
- end
- end)
- -- Header Image (small top center)
- local headerImage = Instance.new("ImageLabel")
- headerImage.Size = UDim2.new(0, 50, 0, 50)
- headerImage.Position = UDim2.new(0.5, -25, 0, -30)
- headerImage.BackgroundTransparency = 1
- headerImage.Image = "rbxassetid://6031071050" -- Replace this with your new image asset ID
- headerImage.Parent = main
- -- Small Side Toggle Button (left side)
- local sideToggle = Instance.new("TextButton")
- sideToggle.Size = UDim2.new(0, 40, 0, 40)
- sideToggle.Position = UDim2.new(0, 5, 0.5, -20)
- sideToggle.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- sideToggle.Text = "❌"
- sideToggle.TextColor3 = Color3.new(1, 1, 1)
- sideToggle.Font = Enum.Font.GothamBold
- sideToggle.TextSize = 20
- sideToggle.AutoButtonColor = false
- sideToggle.Parent = screenGui
- Instance.new("UICorner", sideToggle).CornerRadius = UDim.new(1, 0)
- -- Toggle GUI visibility
- sideToggle.MouseButton1Click:Connect(function()
- main.Visible = not main.Visible
- sideToggle.Text = main.Visible and "❌" or "✅"
- end)
- -- TELEPORT SYSTEM UI IN MAIN
- local teleportLabel = Instance.new("TextLabel")
- teleportLabel.Text = "Teleport System"
- teleportLabel.Font = Enum.Font.GothamBold
- teleportLabel.TextSize = 18
- teleportLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- teleportLabel.BackgroundTransparency = 1
- teleportLabel.Size = UDim2.new(1, 0, 0, 30)
- teleportLabel.Position = UDim2.new(0, 0, 0, 10)
- teleportLabel.Parent = main
- -- Position labels
- local xLabel = Instance.new("TextLabel", main)
- xLabel.Text = "X: 0"
- xLabel.Position = UDim2.new(0, 20, 0, 50)
- xLabel.Size = UDim2.new(0, 200, 0, 25)
- xLabel.BackgroundTransparency = 1
- xLabel.TextColor3 = Color3.new(1, 1, 1)
- xLabel.Font = Enum.Font.Gotham
- xLabel.TextSize = 14
- local yLabel = xLabel:Clone()
- yLabel.Text = "Y: 0"
- yLabel.Position = UDim2.new(0, 20, 0, 80)
- yLabel.Parent = main
- local zLabel = xLabel:Clone()
- zLabel.Text = "Z: 0"
- zLabel.Position = UDim2.new(0, 20, 0, 110)
- zLabel.Parent = main
- -- Buttons
- local savedPosition
- local detectBtn = Instance.new("TextButton", main)
- detectBtn.Text = "🔍 Detect Position"
- detectBtn.Size = UDim2.new(0, 180, 0, 30)
- detectBtn.Position = UDim2.new(0, 20, 0, 150)
- detectBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- detectBtn.TextColor3 = Color3.new(1, 1, 1)
- detectBtn.Font = Enum.Font.GothamBold
- detectBtn.TextSize = 14
- Instance.new("UICorner", detectBtn).CornerRadius = UDim.new(0, 6)
- detectBtn.MouseButton1Click:Connect(function()
- local pos = player.Character and player.Character:FindFirstChild("HumanoidRootPart") and player.Character.HumanoidRootPart.Position
- if pos then
- savedPosition = pos
- xLabel.Text = "X: " .. math.floor(pos.X)
- yLabel.Text = "Y: " .. math.floor(pos.Y)
- zLabel.Text = "Z: " .. math.floor(pos.Z)
- end
- end)
- -- Teleport Toggle Button
- local teleportToggle = Instance.new("TextButton", main)
- teleportToggle.Text = "✅ Teleport to Saved Position"
- teleportToggle.Size = UDim2.new(0, 220, 0, 30)
- teleportToggle.Position = UDim2.new(0, 20, 0, 190)
- teleportToggle.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- teleportToggle.TextColor3 = Color3.new(1, 1, 1)
- teleportToggle.Font = Enum.Font.GothamBold
- teleportToggle.TextSize = 14
- Instance.new("UICorner", teleportToggle).CornerRadius = UDim.new(0, 6)
- local teleportEnabled = true
- teleportToggle.MouseButton1Click:Connect(function()
- if teleportEnabled and savedPosition then
- local char = player.Character
- if char and char:FindFirstChild("HumanoidRootPart") then
- char:MoveTo(savedPosition)
- end
- end
- teleportEnabled = not teleportEnabled
- teleportToggle.Text = teleportEnabled and "✅ Teleport to Saved Position" or "❎ Teleport to Saved Position"
- end)
Advertisement
Add Comment
Please, Sign In to add comment