Guest User

ROBLOX Wandering NPC Script

a guest
Jun 7th, 2015
4,472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. local Humanoid = script.Parent.Humanoid
  2.  
  3. while true do
  4.     local x = math.random(-500, 500)
  5.     local y = 0
  6.     local z = math.random(-500, 500)
  7.     script.Parent.Humanoid:MoveTo(Vector3.new(x, y, z),game.Workspace.BasePlate)
  8.     wait(math.random(1, 10))
  9. end
Advertisement
Add Comment
Please, Sign In to add comment