SHARE
TWEET

Shift tp

ipastetomuch Apr 6th, 2019 4,608 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local UIS = game:GetService("UserInputService")
  2.  
  3. local Player = game.Players.LocalPlayer
  4. local Mouse = Player:GetMouse()
  5.  
  6.  
  7. function GetCharacter()
  8.    return game.Players.LocalPlayer.Character
  9. end
  10.  
  11. function Teleport(pos)
  12.    local Char = GetCharacter()
  13.    if Char then
  14.        Char:MoveTo(pos)
  15.    end
  16. end
  17.  
  18.  
  19. UIS.InputBegan:Connect(function(input)
  20.    if input.UserInputType == Enum.UserInputType.MouseButton1 and UIS:IsKeyDown(Enum.KeyCode.LeftShift) then
  21.        Teleport(Mouse.Hit.p)
  22.    end
  23. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top