I have a function that waits until a player dies, but it doesn't find out if the player dies or not it just waits over and over, it doesn't end if a player dies. How can I fix this?
repeat wait() until plr1.Character.Humanoid.Health == 0 or plr2.Character.Humanoid.Health == 0