HackCreator

tp

Jun 16th, 2023
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. --[[
  2. © 2021 WeAreDevs
  3. A distribution of https://wearedevs.net/scripts
  4. Created August 2, 2021
  5.  
  6. Directions:
  7. 1. Inject this script into any game using a Lua injector like JJSploit.
  8. 2. Press left ctrl + click to where you want to teleport
  9. Re-execute the script to toggle click teleport
  10. ]]
  11.  
  12. --Makes sure this script is only executed once
  13. if _G.WRDClickTeleport == nil then
  14. _G.WRDClickTeleport = true
  15.  
  16. local player = game:GetService("Players").LocalPlayer
  17. local UserInputService = game:GetService("UserInputService")
  18. --Wanted to avoid using mouse instance, but UIS^ is very tedious to get mouse hit position
  19. local mouse = player:GetMouse()
  20.  
  21. --Waits until the player's mouse is found
  22. repeat wait() until mouse
  23.  
  24. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  25. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  26. --Only click teleport if the toggle is enabled
  27. if _G.WRDClickTeleport and UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then
  28. player.Character:MoveTo(Vector3.new(mouse.Hit.x, mouse.Hit.y, mouse.Hit.z))
  29. end
  30. end
  31. end)
  32. --Just toggle instead of re-executing the script
  33. else
  34. _G.WRDClickTeleport = not _G.WRDClickTeleport
  35. --Notify
  36. if _G.WRDClickTeleport then
  37. game.StarterGui:SetCore("SendNotification", {Title="WeAreDevs.net"; Text="Click teleport enabled"; Duration=5;})
  38. else
  39. game.StarterGui:SetCore("SendNotification", {Title="WeAreDevs.net"; Text="Click teleport disabled"; Duration=5;})
  40. end
  41. end
  42.  
Add Comment
Please, Sign In to add comment