Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local character = player.Character
- local humanoid = character:WaitForChild("Humanoid")
- game:GetService("RunService").RenderStepped:connect(function()
- if humanoid.Health > 0 then
- character.Torso.CFrame = CFrame.new(character.Torso.Position, Vector3.new(mouse.Hit.p.X, character.Torso.Position.Y, mouse.Hit.p.Z))
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment