Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

NPC Random Walking Script- Help?

Asked by 9 years ago

So, i need some animals that walk around randomly in my game. I've accomplished the task of getting the script to make regular humanoids walk around randomly, but i can't seem to get my animals to function with the script. HELP! Here it is:

while true do
wait(5)
game.Workspace.Character["Humanoid"]:MoveTo(Vector3.new(math.random(1,50),math.random(1,50), math.random(1,50)), game.Workspace.PrimaryPart)
end

NOTE: The script works perfect with any regular robloxian humanoid but fails to work when put into an animal model such as my "Elephant" model. (Yes the elephant is welded) PLEASE HELP!

0
How is it failing? Prioxis 673 — 9y
0
Is the humanoid inside a model? drew1017 330 — 9y

Answer this question