AlexYaWon

Roblox Shift+Click TP Script that actually works!

Aug 9th, 2022
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. local player = game:GetService("Players").LocalPlayer
  2. local char = player.Character
  3. local mouse = player:GetMouse()
  4. local uis = game:GetService("UserInputService")
  5.  
  6. local shifthold  = false
  7.  
  8. mouse.Button1Down:Connect(function()
  9.     if shifthold then
  10.         char:MoveTo(mouse.Hit.p)
  11.     end
  12. end)
  13.  
  14. uis.InputBegan:Connect(function(input, process)
  15.     if input.KeyCode == Enum.KeyCode.LeftShift or input.KeyCode == Enum.KeyCode.RightShift then
  16.         shifthold = true
  17.     end
  18. end)
  19.  
  20. uis.InputEnded:Connect(function(input, process)
  21.     if input.KeyCode == Enum.KeyCode.LeftShift or input.KeyCode == Enum.KeyCode.RightShift then
  22.         shifthold = false
  23.     end
  24. end)
Add Comment
Please, Sign In to add comment