Charliezkie

Ctrl + Click Tp Script

Aug 22nd, 2019
675
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local Imput = game:GetService("UserInputService")
  2. local Plr = game.Players.LocalPlayer
  3. local Mouse = Plr:GetMouse()
  4.  
  5. function To(position)
  6.     local Chr = Plr.Character
  7.     if Chr ~= nil then
  8.         Chr:MoveTo(position)
  9.     end
  10. end
  11.  
  12. Imput.InputBegan:Connect(function(input)
  13.     if input.UserInputType == Enum.UserInputType.MouseButton1 and Imput:IsKeyDown(Enum.KeyCode.LeftControl) then
  14.         To(Mouse.Hit.p)
  15.     end
  16. end)
Add Comment
Please, Sign In to add comment