Idk wut to say Script:
while true do owner = script.Owner.Value wait() if game.Workspace[owner].Humanoid.Health == 0 then script.Parent.Parent:Destroy() end end
Its not working. I really need help!
Instead of doing an infinite loop, I'd use an event listener instead:
if game.Workspace[owner] then --Check if game.Workspace[owner] exists game.Workspace[owner].Humanoid.Died:connect(function() --Wait until death script.Parent.Parent:Destroy() --Destroy script.Parent.Parent end) end