Advertisement
raulib

TP

Jul 12th, 2017
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. -- Objects
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local NAME = Instance.new("TextBox")
  5. local TP = Instance.new("TextButton")
  6.  
  7. local HAX = game.Players.LocalPlayer
  8.  
  9. -- Properties
  10.  
  11. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  12.  
  13. NAME.Name = "NAME"
  14. NAME.Parent = ScreenGui
  15. NAME.BackgroundColor3 = Color3.new(1, 0, 0)
  16. NAME.BorderSizePixel = 0
  17. NAME.Size = UDim2.new(0, 200, 0, 50)
  18. NAME.Font = Enum.Font.SourceSans
  19. NAME.FontSize = Enum.FontSize.Size14
  20. NAME.Text = "Player Name"
  21. NAME.TextScaled = true
  22. NAME.TextSize = 14
  23. NAME.TextWrapped = true
  24.  
  25. TP.Name = "TP"
  26. TP.Parent = ScreenGui
  27. TP.BackgroundColor3 = Color3.new(1, 0, 0)
  28. TP.BorderSizePixel = 0
  29. TP.Position = UDim2.new(0, 0, 0, 50)
  30. TP.Size = UDim2.new(0, 200, 0, 50)
  31. TP.Font = Enum.Font.SourceSans
  32. TP.FontSize = Enum.FontSize.Size14
  33. TP.Text = "Teleport"
  34. TP.TextScaled = true
  35. TP.TextSize = 14
  36. TP.TextWrapped = true
  37.  
  38. TP.MouseButton1Down:connect(function()
  39. local TRGT = NAME.Text
  40. local PLEYER = game.Players:FindFirstChild(TRGT)
  41. while PLEYER and not PLEYER.Character do wait() end
  42. game:GetService('TeleportService'):Teleport(912599093, PLEYER.Character)
  43. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement