Advertisement
DoodooButter69S

Untitled

Dec 16th, 2020
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2. local mouse = p:GetMouse()
  3. local char = p.Character
  4. local enabled = false
  5.  
  6. mouse.KeyDown:connect(function(key)
  7. key = key:lower()
  8. if key == "p" then
  9. enabled = true
  10. end
  11. end)
  12.  
  13. mouse.KeyUp:connect(function(key)
  14. key = key:lower()
  15. if key == "q" then
  16. enabled = false
  17. end
  18. end)
  19.  
  20. mouse.Button1Down:connect(function()
  21. if char and enabled == true then
  22. char.HumanoidRootPart.CFrame = mouse.Hit + Vector3.new(0,7,0)
  23. end
  24. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement