kingkoolie

Untitled

Oct 31st, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local mouse = player:GetMouse()
  3. local character = player.Character
  4. local humanoid = character:WaitForChild("Humanoid")
  5.  
  6. game:GetService("RunService").RenderStepped:connect(function()
  7. if humanoid.Health > 0 then
  8. character.Torso.CFrame = CFrame.new(character.Torso.Position, Vector3.new(mouse.Hit.p.X, character.Torso.Position.Y, mouse.Hit.p.Z))
  9. end
  10. end)
Advertisement
Add Comment
Please, Sign In to add comment