basically , in my rpg I want it so that if my enemy goes a certain distance from the spawnpoint (I can just use a block) then it walks back to the spawnpoint, so I was wondering if there was a way to measure the stud distance and make it so that it returns to normal spawn.. any help guys ?
if dist >= 10 then
script.Parent.Human:MoveTo(pos) -- dist being the stud distance , and pos being the spawnpoint (e.g)
end
Idk something like that... thanks , any help appreciated

2 comments
Thanks , this does work, and is helpful , but i just wanted to know why on line 7 you added spawnPoint.Positon and spawnPoint itself, why not one?
I believe they removed it by now, however there used to be a second parameter that required you to pass in the object you are moving to or at least a description of it, Habit I guess.