local script inside the zombie
local runService = game:GetService("RunService")
local zombietorso = script.Parent.Torso
while true do
wait()
local aggro = 50
for _, v in pairs(game.Players:GetChildren()) do
local character = v.Character
if character and character.Humanoid then
local torso = character.Torso
if torso then
local distance = (zombietorso.Position - torso.Position).Magnitude
if distance < aggro then
script.Parent.Humanoid:MoveTo(torso.Position)
end
end
else
script.Parent.Humanoid.Health -= script.Parent.Humanoid.MaxHealth
end
end
end
** You are now Level 5! **