if target then local damageDebounce = true local damageCor = coroutine.wrap(function() while true do wait() repeat wait() until (myRoot.Position - target.Position).magnitude >= 3 myHuman.WalkSpeed = 0 wait(.5)
local human = target.Parent:FindFirstChild("Humanoid")
if human and damageDebounce == true then
damageDebounce = false
human:TakeDamage(15)
wait(1)
damageDebounce = true
It keeps saying "Workspace.Basic Zombie.ZombieAi:30: attempt to index nil with 'FindFirstChild'"
