Roblox Game Tutorial (CodaKid)

Follow script: https://www.roblox.com/library/477238034/Follow-script

also…

fdistance = 40 --how close you want them to be before following
zombie = script['Parent']
 
while wait() do
    local closestp = nil;
    local closestdist = fdistance;
	 
    for i,v in pairs (game['Players']:GetChildren())
        if (v.Character.Torso.Position-zombie.Torso.Position).magnitude <= closestdist then
	        closestp = v
	        closestdist = (v.Character.Torso.Position-zombie.Torso.Position).magnitude
	    end
	end
	 
	zombie.Humanoid:MoveTo(closestp.Character.Torso.Position, closestp.Character.Torso)
end

Another follow tutorial:

More tutorials:

This is the zombie that’s already built and ready to go, with this script…