Algarnr

This teleport script will broke the game.....

Jun 6th, 2025
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local player = game.Players.LocalPlayer
  2. local screenGui = Instance.new("ScreenGui")
  3. screenGui.Name = "TeleportSystemGUI"
  4. screenGui.ResetOnSpawn = false
  5. screenGui.Parent = player:WaitForChild("PlayerGui")
  6.  
  7. -- Main Frame
  8. local main = Instance.new("Frame")
  9. main.Name = "MainFrame"
  10. main.Size = UDim2.new(0.8, 0, 0.8, 0)
  11. main.Position = UDim2.new(0.1, 0, 0.1, 0)
  12. main.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  13. main.BorderSizePixel = 0
  14. main.Active = true
  15. main.Draggable = true
  16. main.Visible = true
  17. main.Parent = screenGui
  18.  
  19. Instance.new("UICorner", main).CornerRadius = UDim.new(0, 8)
  20.  
  21. local stroke = Instance.new("UIStroke", main)
  22. stroke.Thickness = 2
  23. stroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  24. stroke.LineJoinMode = Enum.LineJoinMode.Round
  25.  
  26. task.spawn(function()
  27.     while true do
  28.         for h = 0, 1, 0.01 do
  29.             stroke.Color = Color3.fromHSV(h, 1, 1)
  30.             task.wait(0.03)
  31.         end
  32.     end
  33. end)
  34.  
  35. -- Header Image (small top center)
  36. local headerImage = Instance.new("ImageLabel")
  37. headerImage.Size = UDim2.new(0, 50, 0, 50)
  38. headerImage.Position = UDim2.new(0.5, -25, 0, -30)
  39. headerImage.BackgroundTransparency = 1
  40. headerImage.Image = "rbxassetid://6031071050" -- Replace this with your new image asset ID
  41. headerImage.Parent = main
  42.  
  43. -- Small Side Toggle Button (left side)
  44. local sideToggle = Instance.new("TextButton")
  45. sideToggle.Size = UDim2.new(0, 40, 0, 40)
  46. sideToggle.Position = UDim2.new(0, 5, 0.5, -20)
  47. sideToggle.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  48. sideToggle.Text = "❌"
  49. sideToggle.TextColor3 = Color3.new(1, 1, 1)
  50. sideToggle.Font = Enum.Font.GothamBold
  51. sideToggle.TextSize = 20
  52. sideToggle.AutoButtonColor = false
  53. sideToggle.Parent = screenGui
  54.  
  55. Instance.new("UICorner", sideToggle).CornerRadius = UDim.new(1, 0)
  56.  
  57. -- Toggle GUI visibility
  58. sideToggle.MouseButton1Click:Connect(function()
  59.     main.Visible = not main.Visible
  60.     sideToggle.Text = main.Visible and "❌" or "✅"
  61. end)
  62.  
  63. -- TELEPORT SYSTEM UI IN MAIN
  64. local teleportLabel = Instance.new("TextLabel")
  65. teleportLabel.Text = "Teleport System"
  66. teleportLabel.Font = Enum.Font.GothamBold
  67. teleportLabel.TextSize = 18
  68. teleportLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  69. teleportLabel.BackgroundTransparency = 1
  70. teleportLabel.Size = UDim2.new(1, 0, 0, 30)
  71. teleportLabel.Position = UDim2.new(0, 0, 0, 10)
  72. teleportLabel.Parent = main
  73.  
  74. -- Position labels
  75. local xLabel = Instance.new("TextLabel", main)
  76. xLabel.Text = "X: 0"
  77. xLabel.Position = UDim2.new(0, 20, 0, 50)
  78. xLabel.Size = UDim2.new(0, 200, 0, 25)
  79. xLabel.BackgroundTransparency = 1
  80. xLabel.TextColor3 = Color3.new(1, 1, 1)
  81. xLabel.Font = Enum.Font.Gotham
  82. xLabel.TextSize = 14
  83.  
  84. local yLabel = xLabel:Clone()
  85. yLabel.Text = "Y: 0"
  86. yLabel.Position = UDim2.new(0, 20, 0, 80)
  87. yLabel.Parent = main
  88.  
  89. local zLabel = xLabel:Clone()
  90. zLabel.Text = "Z: 0"
  91. zLabel.Position = UDim2.new(0, 20, 0, 110)
  92. zLabel.Parent = main
  93.  
  94. -- Buttons
  95. local savedPosition
  96. local detectBtn = Instance.new("TextButton", main)
  97. detectBtn.Text = "🔍 Detect Position"
  98. detectBtn.Size = UDim2.new(0, 180, 0, 30)
  99. detectBtn.Position = UDim2.new(0, 20, 0, 150)
  100. detectBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  101. detectBtn.TextColor3 = Color3.new(1, 1, 1)
  102. detectBtn.Font = Enum.Font.GothamBold
  103. detectBtn.TextSize = 14
  104.  
  105. Instance.new("UICorner", detectBtn).CornerRadius = UDim.new(0, 6)
  106.  
  107. detectBtn.MouseButton1Click:Connect(function()
  108.     local pos = player.Character and player.Character:FindFirstChild("HumanoidRootPart") and player.Character.HumanoidRootPart.Position
  109.     if pos then
  110.         savedPosition = pos
  111.         xLabel.Text = "X: " .. math.floor(pos.X)
  112.         yLabel.Text = "Y: " .. math.floor(pos.Y)
  113.         zLabel.Text = "Z: " .. math.floor(pos.Z)
  114.     end
  115. end)
  116.  
  117. -- Teleport Toggle Button
  118. local teleportToggle = Instance.new("TextButton", main)
  119. teleportToggle.Text = "✅ Teleport to Saved Position"
  120. teleportToggle.Size = UDim2.new(0, 220, 0, 30)
  121. teleportToggle.Position = UDim2.new(0, 20, 0, 190)
  122. teleportToggle.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  123. teleportToggle.TextColor3 = Color3.new(1, 1, 1)
  124. teleportToggle.Font = Enum.Font.GothamBold
  125. teleportToggle.TextSize = 14
  126.  
  127. Instance.new("UICorner", teleportToggle).CornerRadius = UDim.new(0, 6)
  128.  
  129. local teleportEnabled = true
  130. teleportToggle.MouseButton1Click:Connect(function()
  131.     if teleportEnabled and savedPosition then
  132.         local char = player.Character
  133.         if char and char:FindFirstChild("HumanoidRootPart") then
  134.             char:MoveTo(savedPosition)
  135.         end
  136.     end
  137.     teleportEnabled = not teleportEnabled
  138.     teleportToggle.Text = teleportEnabled and "✅ Teleport to Saved Position" or "❎ Teleport to Saved Position"
  139. end)
Tags: #roblox
Advertisement
Add Comment
Please, Sign In to add comment