Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local char = script.Parent
- local humanoid = char:WaitForChild("Humanoid")
- local mouse = game.Players.LocalPlayer:GetMouse()
- mouse.Button1Down:Connect(function()
- local pos = mouse.Hit.Position
- humanoid:MoveTo(pos)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement