Hello,
I 've ran into problem with kill tag for npc . The issue is whenever I kill npc , the tag print nil for some reasons . I looked everywhere but still don’t find any solution. Any help is appreciated
this is the script:
for i , v in pairs(mob:GetChildren()) do
v.Humanoid.Died:Connect(function()
local tag = v.Humanoid:FindFirstChild("creator")
if tag ~= nil then
local killer = tag.Value
print(killer)
else
print("nil")
end
end)
end