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.
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
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?