BlastingStone

Untitled

Jul 27th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 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