Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I make it to where my enemies walk?

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.

2 comments

0

And I know I ask a lot but I am eager to learn :D

0

This is an amazing cite

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.