Advertisement
CopperHvH

Teleport GUI

Feb 28th, 2020
1,004
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.92 KB | None | 0 0
  1. -- Instances:
  2.  
  3. local TeleportGUI = Instance.new("ScreenGui")
  4. local Main = Instance.new("ImageLabel")
  5. local title = Instance.new("TextLabel")
  6. local credits = Instance.new("TextLabel")
  7. local droplist = Instance.new("TextButton")
  8. local choices = Instance.new("Frame")
  9. local UIListLayout = Instance.new("UIListLayout")
  10. local sample = Instance.new("TextButton")
  11. local icon = Instance.new("TextLabel")
  12. local usebypass = Instance.new("TextButton")
  13. local TextLabel = Instance.new("TextLabel")
  14. local teleport = Instance.new("TextButton")
  15.  
  16. --Properties:
  17.  
  18. TeleportGUI.Name = "TeleportGUI"
  19. TeleportGUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  20. TeleportGUI.ResetOnSpawn = false
  21.  
  22. Main.Name = "Main"
  23. Main.Parent = TeleportGUI
  24. Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  25. Main.BackgroundTransparency = 1.000
  26. Main.Position = UDim2.new(0.463636428, 0, 0.27868852, 0)
  27. Main.Size = UDim2.new(0, 200, 0, 140)
  28. Main.Image = "rbxassetid://3570695787"
  29. Main.ImageColor3 = Color3.fromRGB(35, 35, 35)
  30. Main.ScaleType = Enum.ScaleType.Slice
  31. Main.SliceCenter = Rect.new(100, 100, 100, 100)
  32.  
  33. title.Name = "title"
  34. title.Parent = Main
  35. title.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  36. title.BorderSizePixel = 0
  37. title.Size = UDim2.new(0, 100, 0, 20)
  38. title.Font = Enum.Font.GothamSemibold
  39. title.Text = " Teleport GUI"
  40. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  41. title.TextSize = 16.000
  42. title.TextXAlignment = Enum.TextXAlignment.Left
  43.  
  44. credits.Name = "credits"
  45. credits.Parent = Main
  46. credits.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  47. credits.BorderSizePixel = 0
  48. credits.Position = UDim2.new(0.247500002, 0, 0.857142866, 0)
  49. credits.Size = UDim2.new(0, 150, 0, 20)
  50. credits.Font = Enum.Font.GothamSemibold
  51. credits.Text = "Created by Copper "
  52. credits.TextColor3 = Color3.fromRGB(150, 150, 150)
  53. credits.TextSize = 12.000
  54. credits.TextXAlignment = Enum.TextXAlignment.Right
  55.  
  56. droplist.Name = "droplist"
  57. droplist.Parent = Main
  58. droplist.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  59. droplist.BorderColor3 = Color3.fromRGB(200, 200, 200)
  60. droplist.Position = UDim2.new(0.0524999984, 0, 0.214285716, 0)
  61. droplist.Size = UDim2.new(0, 179, 0, 20)
  62. droplist.ZIndex = 2
  63. droplist.Font = Enum.Font.GothamSemibold
  64. droplist.Text = "<player name>"
  65. droplist.TextColor3 = Color3.fromRGB(255, 255, 255)
  66. droplist.TextSize = 14.000
  67.  
  68. choices.Name = "choices"
  69. choices.Parent = droplist
  70. choices.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  71. choices.BorderColor3 = Color3.fromRGB(200, 200, 200)
  72. choices.Position = UDim2.new(0, 0, 1, 0)
  73. choices.Size = UDim2.new(0, 179, 0, 20)
  74. choices.Visible = false
  75. choices.ZIndex = 3
  76.  
  77. UIListLayout.Parent = choices
  78. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  79.  
  80. sample.Name = "sample"
  81. sample.Parent = choices
  82. sample.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  83. sample.BorderColor3 = Color3.fromRGB(200, 200, 200)
  84. sample.BorderSizePixel = 0
  85. sample.Position = UDim2.new(0.0524999984, 0, 0.214285716, 0)
  86. sample.Size = UDim2.new(0, 179, 0, 20)
  87. sample.ZIndex = 3
  88. sample.AutoButtonColor = false
  89. sample.Font = Enum.Font.GothamSemibold
  90. sample.Text = "SamPle TeXt XD"
  91. sample.TextColor3 = Color3.fromRGB(255, 255, 255)
  92. sample.TextSize = 14.000
  93.  
  94. icon.Name = "icon"
  95. icon.Parent = droplist
  96. icon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  97. icon.BackgroundTransparency = 1.000
  98. icon.Position = UDim2.new(0.905027926, 0, 0, 0)
  99. icon.Size = UDim2.new(0, 16, 0, 20)
  100. icon.ZIndex = 2
  101. icon.Font = Enum.Font.GothamSemibold
  102. icon.Text = "▼"
  103. icon.TextColor3 = Color3.fromRGB(255, 255, 255)
  104. icon.TextSize = 12.000
  105.  
  106. usebypass.Name = "usebypass"
  107. usebypass.Parent = Main
  108. usebypass.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  109. usebypass.BorderColor3 = Color3.fromRGB(200, 200, 200)
  110. usebypass.Position = UDim2.new(0.0524999984, 0, 0.428571433, 0)
  111. usebypass.Size = UDim2.new(0, 20, 0, 20)
  112. usebypass.ZIndex = 2
  113. usebypass.Font = Enum.Font.GothamSemibold
  114. usebypass.Text = ""
  115. usebypass.TextColor3 = Color3.fromRGB(255, 255, 255)
  116. usebypass.TextSize = 14.000
  117.  
  118. TextLabel.Parent = usebypass
  119. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  120. TextLabel.BackgroundTransparency = 1.000
  121. TextLabel.Position = UDim2.new(1.45000005, 0, 0, 0)
  122. TextLabel.Size = UDim2.new(0, 150, 0, 20)
  123. TextLabel.Font = Enum.Font.GothamSemibold
  124. TextLabel.Text = "Try Teleport Bypass"
  125. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  126. TextLabel.TextSize = 14.000
  127. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  128.  
  129. teleport.Name = "teleport"
  130. teleport.Parent = Main
  131. teleport.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  132. teleport.BorderColor3 = Color3.fromRGB(200, 200, 200)
  133. teleport.Position = UDim2.new(0.0524999984, 0, 0.642857134, 0)
  134. teleport.Size = UDim2.new(0, 179, 0, 20)
  135. teleport.ZIndex = 2
  136. teleport.Font = Enum.Font.GothamSemibold
  137. teleport.Text = "Teleport"
  138. teleport.TextColor3 = Color3.fromRGB(255, 255, 255)
  139. teleport.TextSize = 14.000
  140.  
  141. Main.SliceScale = 0.10
  142.  
  143. -- Scripts:
  144.  
  145. local player = game.Players.LocalPlayer
  146. local char = player.Character
  147. local rpart = char.HumanoidRootPart
  148.  
  149. Main.Position=UDim2.new(0.5,0,-0.5,0)
  150. Main:TweenPosition(UDim2.new(0.5,0,0.5,0),"Out","Quint",0.6)
  151. TeleportGUI.Enabled=true
  152. local dragger = {}local resizer = {}do local mouse = game:GetService("Players").LocalPlayer:GetMouse();local inputService = game:GetService('UserInputService');local heartbeat = game:GetService("RunService").Heartbeat;function dragger.new(frame)
  153. local s, event = pcall(function()return frame.MouseEnter end)
  154. if s then frame.Active = true;
  155. event:connect(function()
  156. local input = frame.InputBegan:connect(function(key)
  157. if key.UserInputType == Enum.UserInputType.MouseButton1 then
  158.     local objectPosition = Vector2.new(mouse.X - frame.AbsolutePosition.X, mouse.Y - frame.AbsolutePosition.Y);
  159.     while heartbeat:wait() and inputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) do
  160.         frame:TweenPosition(UDim2.new(0, mouse.X - objectPosition.X + (frame.Size.X.Offset * frame.AnchorPoint.X), 0, mouse.Y - objectPosition.Y + (frame.Size.Y.Offset * frame.AnchorPoint.Y)), 'Out', 'Quad', 0.1, true);
  161.         end end end)
  162.         local leave;
  163.         leave = frame.MouseLeave:connect(function()
  164.         input:disconnect();
  165.         leave:disconnect();
  166.         end)end)end end
  167.         function resizer.new(p, s)
  168.             p:GetPropertyChangedSignal('AbsoluteSize'):connect(function()
  169.             s.Size = UDim2.new(s.Size.X.Scale, s.Size.X.Offset, s.Size.Y.Scale, p.AbsoluteSize.Y);
  170.             end)end end
  171.  
  172.             dragger.new(Main)
  173.  
  174.             loadstring(game:HttpGet(("https://pastebin.com/raw/R4teeSq8"),true))()--_G.arrowup
  175.             loadstring(game:HttpGet(("https://pastebin.com/raw/SYEvPVTa"),true))()--_G.arrowdown
  176.  
  177.             icon.Text=_G.arrowdown
  178.             sample.Visible=false
  179.  
  180.             tpbypass=false
  181.  
  182.             droplistopen = false
  183.             droplist.MouseButton1Click:Connect(function()
  184.             if not droplistopen then droplistopen=true
  185.             icon.Text=_G.arrowup
  186.             choices.Size=UDim2.new(0,179,0,0)
  187.             local counter=0
  188.             for i,v in pairs(choices:GetChildren()) do
  189.                 if v:IsA("TextButton") then
  190.                     if v.Name ~= "sample" then
  191.                         counter=counter+20
  192.                     end
  193.                 end
  194.             end
  195.             choices.Size=UDim2.new(0,179,0,counter)
  196.             choices.Visible = true
  197.         else droplistopen=false
  198.             icon.Text=_G.arrowdown
  199.             choices.Visible = false
  200.         end
  201.         end)
  202.  
  203.         for x,d in pairs(game.Players:GetPlayers()) do
  204.             if d ~= game.Players.LocalPlayer then
  205.                 local btn = sample:Clone()
  206.                 btn.Visible=true
  207.                 btn.Parent = choices
  208.                 btn.Name = d.Name
  209.                 btn.Text = d.Name
  210.                 btn.MouseButton1Click:Connect(function()
  211.                 icon.Text=_G.arrowdown
  212.                 droplist.Text = btn.Text
  213.                 choices.Visible=false
  214.                 droplistopen = false
  215.                 end)
  216.             end
  217.         end
  218.  
  219.         game.Players.PlayerAdded:Connect(function(xd)
  220.         choices.Size=UDim2.new(0,179,0,choices.Size.Y.Offset+20)
  221.         local btn = sample:Clone()
  222.         btn.Visible=true
  223.         btn.Parent = choices
  224.         btn.Name = xd.Name
  225.         btn.Text = xd.Name
  226.         btn.MouseButton1Click:Connect(function()
  227.         icon.Text=_G.arrowdown
  228.         droplist.Text = btn.Text
  229.         choices.Visible=false
  230.         droplistopen = false
  231.         end)
  232.         end)
  233.  
  234.         game.Players.PlayerRemoving:Connect(function(xd)
  235.         for x,d in pairs (choices:GetChildren()) do
  236.             if d.Name == xd.Name then
  237.                 d:Destroy()
  238.                 choices.Size=UDim2.new(0,179,0,choices.Size.Y.Offset-20)
  239.             end
  240.         end
  241.         end)
  242.  
  243.         usebypass.MouseButton1Click:Connect(function()
  244.         if not tpbypass then tpbypass=true
  245.         usebypass.BackgroundColor3=Color3.fromRGB(200,200,200)
  246.     else tpbypass=false
  247.         usebypass.BackgroundColor3=Color3.fromRGB(25,25,25)
  248.     end
  249.     end)
  250.  
  251.     local ts=game:GetService("TweenService")
  252.     local ti=TweenInfo.new(1,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,0,false,0)
  253.     teleport.MouseButton1Click:Connect(function()
  254.     if not tpbypass then
  255.         pcall(function()rpart.Anchored = true rpart.CFrame = game.Players[droplist.Text].Character.HumanoidRootPart.CFrame wait(0.1) rpart.Anchored = false end)
  256.     else
  257.         pcall(function()rpart.Anchored = true local tw=ts:Create(rpart,ti,{CFrame = game.Players[droplist.Text].Character.HumanoidRootPart.CFrame})
  258.         tw:Play() wait(0.1) rpart.Anchored = false end)
  259.     end
  260. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement