Advertisement
Naruto_X

Untitled

Nov 16th, 2018
1,595
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2.  
  3. hum = plr.Character.HumanoidRootPart
  4.  
  5. mouse = plr:GetMouse()
  6.  
  7.  
  8.  
  9. mouse.KeyDown:connect(function(key)
  10.  
  11. if key == "r" then
  12.  
  13. if mouse.Target then
  14.  
  15. hum.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z)
  16.  
  17. end
  18.  
  19. end
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement