while true do
wait(1)
local target = findNearestTorso(script.Parent.Torso.Position)
if target ~= nil then
script.Parent.RedZombie:MoveTo(target.Position + Vector3.new(math.random(-2,2),0,math.random(-2,2)), target)
end
end
Hey guys,
This is part of a script from a Monster I have made.
I was wondering is theres any easy way to make this NOT a loop...?
Just wondered...
Thanks,
Draganoth
|