Inoob8C

click tp

Mar 23rd, 2022
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. -- Credits To Hampter#2656/SokkaTheDumbKid
  2. --Press T To Toggle
  3.  
  4. local player = game:GetService("Players").LocalPlayer
  5. local mouse = player:GetMouse()
  6. local tpMode = false
  7. local uis = game:GetService("UserInputService")
  8. warn("Click TP Had Loaded (DM Hampter#2656 for help)")
  9.  
  10. game:GetService("StarterGui"):SetCore("SendNotification", {
  11. Title = "Click Teleport Done Loading";
  12. Text = "Created by Hampter#2656/SokkaTheDumbKid";
  13. })
  14.  
  15. local function Teleport()
  16. if tpMode == true then
  17. player.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(mouse.Hit.X,mouse.Hit.Y,mouse.Hit.Z))
  18. end
  19. end
  20.  
  21. uis.InputBegan:Connect(function(tp,gp)
  22. if tp.UserInputType == Enum.UserInputType.MouseButton1 then
  23. Teleport()
  24. end
  25. if tp.UserInputType == Enum.UserInputType.Keyboard then
  26. if tp.KeyCode == Enum.KeyCode.T then -- Change Keybind Here
  27. if tpMode == true then
  28. tpMode = false
  29. mouse.Icon = ""
  30. elseif tpMode == false then
  31. tpMode = true
  32. mouse.Icon = "http://www.roblox.com/asset/?id=4834472848"
  33. end
  34. end
  35. end
  36. end)
Advertisement
Add Comment
Please, Sign In to add comment