YANIS_EXPLOITS

Click Teleport script

Aug 9th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. -- Objects
  2.  
  3. local main = Instance.new("ScreenGui")
  4. local main_2 = Instance.new("Frame")
  5. local colors = Instance.new("Frame")
  6. local TextLabel = Instance.new("TextLabel")
  7. local clicktp = Instance.new("TextButton")
  8.  
  9. -- Properties
  10.  
  11. main.Name = "main"
  12. main.Parent = game.CoreGui
  13. main.Active = true
  14. main.Draggable = true
  15.  
  16. main_2.Name = "main"
  17. main_2.Parent = main
  18. main_2.Active = true
  19. main_2.BackgroundColor3 = Color3.new(1, 1, 1)
  20. main_2.BorderSizePixel = 0
  21. main_2.Position = UDim2.new(0.0103675779, 0, 0.689723313, 0)
  22. main_2.Size = UDim2.new(0, 178, 0, 148)
  23.  
  24. colors.Name = "colors"
  25. colors.Parent = main_2
  26. colors.BackgroundColor3 = Color3.new(0, 0.666667, 1)
  27. colors.BorderSizePixel = 0
  28. colors.Size = UDim2.new(0, 178, 0, 27)
  29.  
  30. TextLabel.Parent = colors
  31. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  32. TextLabel.BackgroundTransparency = 5
  33. TextLabel.Position = UDim2.new(0.00155697763, 0, -0.407407403, 0)
  34. TextLabel.Size = UDim2.new(0, 173, 0, 50)
  35. TextLabel.Font = Enum.Font.Highway
  36. TextLabel.Text = "Survivor ClickTP"
  37. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  38. TextLabel.TextSize = 20
  39.  
  40. clicktp.Name = "click-tp"
  41. clicktp.Parent = main_2
  42. clicktp.BackgroundColor3 = Color3.new(0, 0.666667, 1)
  43. clicktp.BorderSizePixel = 0
  44. clicktp.Position = UDim2.new(0.0883788168, 0, 0.265734255, 0)
  45. clicktp.Size = UDim2.new(0, 146, 0, 96)
  46. clicktp.Font = Enum.Font.SourceSans
  47. clicktp.Text = "Click TP"
  48. clicktp.TextColor3 = Color3.new(1, 1, 1)
  49. clicktp.TextSize = 25
  50.  
  51.  
  52. clicktp.MouseButton1Click:connect(function()
  53. mouse = game.Players.LocalPlayer:GetMouse()
  54. tool = Instance.new("Tool")
  55. tool.RequiresHandle = false
  56. tool.Name = "Click Teleport"
  57. tool.Activated:connect(function()
  58. local pos = mouse.Hit+Vector3.new(0,2.5,0)
  59. pos = CFrame.new(pos.X,pos.Y,pos.Z)
  60. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
  61. end)
  62. tool.Parent = game.Players.LocalPlayer.Backpack
  63. end)
Add Comment
Please, Sign In to add comment