Advertisement
JOHNDOELOL

TP Gui

Jun 2nd, 2024 (edited)
867
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.78 KB | None | 0 0
  1. local v0 = Instance.new("ScreenGui");
  2. local v1 = game:GetService("Players");
  3. local v2 = game:GetService("UserInputService");
  4. local v3 = Instance.new("Frame");
  5. local v4 = v1.LocalPlayer;
  6. local v5 = Instance.new("Frame");
  7. local v6 = Instance.new("UIAspectRatioConstraint");
  8. local v7 = Instance.new("ScrollingFrame");
  9. local v8 = Instance.new("UIListLayout");
  10. local v9 = Instance.new("UIAspectRatioConstraint");
  11. local v10 = Instance.new("UICorner");
  12. local v11 = Instance.new("UIAspectRatioConstraint");
  13. local v12 = Instance.new("UICorner");
  14. local v13 = Instance.new("UIAspectRatioConstraint");
  15. local v14 = Instance.new("UIAspectRatioConstraint");
  16. local v1 = game:GetService("Players");
  17. local v2 = game:GetService("UserInputService");
  18. local v15 = v3;
  19. local v4 = v1.LocalPlayer;
  20. local v16 = v4:GetMouse();
  21. local v17 = false;
  22. local v18 = false;
  23. local v19 = nil;
  24. local v20, v21, v22;
  25. local function v23()
  26.     if (v18 == false) then
  27.         v19:Disconnect();
  28.         return;
  29.     end
  30.     local v81 = v20 - v16.X;
  31.     local v82 = v21 - v16.Y;
  32.     v15.Position = v22 - UDim2.new(0, v81, 0, v82);
  33. end
  34. v15.MouseEnter:Connect(function()
  35.     v17 = true;
  36. end);
  37. v15.MouseLeave:Connect(function()
  38.     v17 = false;
  39. end);
  40. v2.InputBegan:Connect(function(v84)
  41.     if ((v84.UserInputType == Enum.UserInputType.MouseButton1) or (v84.UserInputType == Enum.UserInputType.Touch)) then
  42.         v18 = v17;
  43.         if v18 then
  44.             v20, v21 = v16.X, v16.Y;
  45.             v22 = v15.Position;
  46.             v19 = v16.Move:Connect(v23);
  47.         end
  48.     end
  49. end);
  50. v2.InputEnded:Connect(function(v85)
  51.     if ((v85.UserInputType == Enum.UserInputType.MouseButton1) or (v85.UserInputType == Enum.UserInputType.Touch)) then
  52.         v18 = false;
  53.     end
  54. end);
  55. v0.Name = "TP Gui";
  56. v0.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui");
  57. v0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling;
  58. v3.Name = "Main";
  59. v3.Parent = v0;
  60. v3.BackgroundColor3 = Color3.fromRGB(62, 62, 62);
  61. v3.BorderColor3 = Color3.fromRGB(0, 0, 0);
  62. v3.BorderSizePixel = 0;
  63. v3.Position = UDim2.new(0.0336134285, 0, 0.25555557, 0);
  64. v3.Size = UDim2.new(0.377610713, 0, 0.506369412, 0);
  65. v3.Draggable = true;
  66. v5.Name = "Separator";
  67. v5.Parent = v3;
  68. v5.BackgroundColor3 = Color3.fromRGB(0, 0, 0);
  69. v5.BorderColor3 = Color3.fromRGB(0, 0, 0);
  70. v5.BorderSizePixel = 0;
  71. v5.Position = UDim2.new(0.486156672, 0, 0, 0);
  72. v5.Size = UDim2.new(0.00884955656, 0, 1, 0);
  73. v6.Parent = v5;
  74. v6.AspectRatio = 0.013;
  75. v7.Parent = v3;
  76. v7.Active = true;
  77. v7.BackgroundColor3 = Color3.fromRGB(62, 62, 62);
  78. v7.BorderColor3 = Color3.fromRGB(0, 0, 0);
  79. v7.BorderSizePixel = 0;
  80. v7.Position = UDim2.new(0.491876155, 0, 0, 0);
  81. v7.Size = UDim2.new(0.498360664, 0, 1, 0);
  82. v8.Parent = v7;
  83. v8.HorizontalAlignment = Enum.HorizontalAlignment.Center;
  84. v8.SortOrder = Enum.SortOrder.LayoutOrder;
  85. v8.Padding = UDim.new(0, 7);
  86. v9.Parent = v7;
  87. v9.AspectRatio = 0.708;
  88. v10.Parent = v3;
  89. v13.Parent = v3;
  90. v13.AspectRatio = 1.421;
  91. v14.Parent = v0;
  92. v14.AspectRatio = 1.906;
  93. local function v65()
  94.     for v93, v94 in ipairs(v7:GetChildren()) do
  95.         if v94:IsA("TextButton") then
  96.             v94:Destroy();
  97.         end
  98.     end
  99.     for v95, v96 in ipairs(game.Players:GetPlayers()) do
  100.         local v97 = Instance.new("TextButton");
  101.         v97.BackgroundColor3 = Color3.fromRGB(107, 109, 107);
  102.         v97.Text = v96.Name;
  103.         v97.Size = UDim2.new(0, 200, 0, 50);
  104.         v97.Position = UDim2.new(0, 0, 0, #v7:GetChildren() * 60);
  105.         v97.Parent = v7;
  106.         v97.MouseButton1Click:Connect(function()
  107.             local v107 = game.Workspace:FindFirstChild(v96.Name):WaitForChild("HumanoidRootPart");
  108.             game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = v107.CFrame;
  109.         end);
  110.     end
  111. end
  112. v65();
  113. game.Players.PlayerAdded:Connect(v65);
  114. game.Players.PlayerRemoving:Connect(v65);
  115. local v66 = Instance.new("TextButton");
  116. v66.Name = "tptool";
  117. v66.Parent = v3;
  118. v66.BackgroundColor3 = Color3.fromRGB(107, 107, 107);
  119. v66.BorderColor3 = Color3.fromRGB(0, 0, 0);
  120. v66.BorderSizePixel = 0;
  121. v66.Position = UDim2.new(0.102950826, 0, 0.0877707973, 0);
  122. v66.Size = UDim2.new(0.26557377, 0, 0.839622617, 0);
  123. v66.Font = Enum.Font.SourceSans;
  124. v66.TextColor3 = Color3.fromRGB(0, 0, 0);
  125. v66.TextSize = 14;
  126. v10.Parent = v66;
  127. v11.Parent = v66;
  128. v11.AspectRatio = 0.45;
  129. v66.Text = "Teleport Tool";
  130. v66.MouseButton1Click:Connect(function()
  131.     local v86 = Instance.new("Tool");
  132.     v86.Name = "Teleport Tool";
  133.     v86.RequiresHandle = false;
  134.     v86.Parent = game.Players.LocalPlayer.Backpack;
  135.     local function v91(v104)
  136.         v104.Button1Down:Connect(function()
  137.             local v110 = v104.Hit.p;
  138.             game.Players.LocalPlayer.Character:MoveTo(v110);
  139.         end);
  140.     end
  141.     game.Players.LocalPlayer.CharacterAdded:Connect(function(v105)
  142.         local v106 = game.Players.LocalPlayer:GetMouse();
  143.         v91(v106);
  144.     end);
  145.     v91(game.Players.LocalPlayer:GetMouse());
  146. end);
  147. v2.InputBegan:Connect(function(v92)
  148.     if (v92.KeyCode == Enum.KeyCode.P) then
  149.         v3.Visible = not v3.Visible;
  150.     end
  151. end);
Tags: Gui TP bad tp gui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement