zombie.Humanoid.Died:connect(function() local cv = zombie.Humanoid:FindFirstChild("creator") if cv then local k = cv.Value local player = game:GetService("Players"):FindFirstChild(k) print(k) if player then print("mhm") end end end)
prink(k) is working, second print not
We found out that cv
is an ObjectValue, meaning that FindFirstChild() would always return nil
(as it expects a string). The solution was to use this instead:
local player = cv.Value