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.
COMMUNITY QUESTION
How can I make it to where my enemies walk?
1 answer
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
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
And I know I ask a lot but I am eager to learn :D
This is an amazing cite