local h = script.Parent.Humanoid
while true do
h:MoveTo(workspace.DontClean1.Position)
wait(5)
h:MoveTo(workspace.DontClean2.Position)
wait(5)
end
if h.Health then
if h.Health == 0 then
game.Lighting.SuperEvilKeycard:Clone().Parent = game.Players.LocalPlayer.Backpack
script.Parent:Destroy()
end
end
The humanoid moves, but when it dies, nothing happens. There isn't any output errors, i dont know what's happening. as always, i would be happy to elaborate

1 comment
You could try using the Humanoid.Died event instead