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

How can I make it to where my enemies walk? [closed]

Asked by 9 years ago

I want to make non-hostile enemies in my world like a cow or something walk around even if not near a player but not go far from where they respawn after death. I just read the rules again, I apologize. I haven't attempted any scripts for this as I don't know where to start.

0
And I know I ask a lot but I am eager to learn :D UltimateRoGuy 0 — 9y
0
This is an amazing cite UltimateRoGuy 0 — 9y

Closed as Too Broad by Goulstem, YellowoTide, and Redbullusa

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
ZeroBits 142
9 years ago

well, if you want to make them just wander around, I have a basic script, remember to replace my example variables with relevant ones.


local npc = script.Parent.Humanoid while wait(math.random(2,5)) do npc:Move(math.random(),0,math.random()) end

this SHOULD make the npc wander around

Ad