If Statement Script Issue

So basically the problem is when the player clicks play they die and respawn even though the if statement isn’t supposed to run if they are alive.

The Player spawns in a lobby so they aren’t dead but the if statement runs anyway.

MainMenu.MouseButton1Click:Connect(function()
--- things
 if Character:WaitForChild("Humanoid").Died then
				wait(0.5)
				player.Character.Humanoid.Health = 0
		end
  --- spawn 
end)

This is in a Local Script.

That’s an event, I believe you can just do Character:WaitForChild("Humanoid").Died:Wait() if you want it to wait & do something, Idk why you’re trying to change the Humanoid's Health to zero since it’s already gonna be dead by the time it fires