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.

--- things
 if Character:WaitForChild("Humanoid").Died then
				player.Character.Humanoid.Health = 0
  --- spawn 

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