Advertisement
Mediakiller7Cool

Zombie Test Move

May 10th, 2019
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. print("i just Learned To Move Some Humanoids So :D")
  2.  
  3. wait(0.9)
  4.  
  5. local PATROL_DELAY = 2
  6.  
  7. local zombie = game.Workspace.Zombie
  8. local humanoid = zombie.Humanoid
  9.  
  10. local nextDestinationObject = pointA
  11.  
  12. while wait(PATROL_DELAY) do
  13.  
  14. humanoid:MoveTo(nextDestinationObject.PrimaryPart.Position)
  15.  
  16. humanoid.MoveToFinished:Wait()
  17.  
  18. if nextDestinationObject == pointA then
  19. nextDestinationObject = pointB
  20. else
  21. nextDestinationObject = pointA
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement