Im trying to control zombies with one script using collectionservice and spawning them in after a short cooldown. The thing is that I parent the zombies into a folder and the function for the tag doesnt work, so i decided to check when a zombie gets added to the function, then call the function. I used a childadded event and the event doesnt get called at all. i tried printing out the connected function as well and nothing prints out. im so confused as to how this is even happening.
CODE:
game.Workspace.Zombies.ChildAdded:Connect(function(child)
print(child)
if child:HasTag("Zombies") then
print("ye")
for _, zombie in pairs(taggedZombies) do
follow(zombie)
end
end
end)
Nothing gets printed to the console.
Thanks,
dza