function WaveWait() SkipWave.Value = 1 CheckForEnemies() repeat print(Enemies) wait(0.5) CheckForEnemies() until PlayerSkippedWave.Value == 1 or Enemies == 0 SkipWave.Value = 0 PlayerSkippedWave.Value = 0 end
So, I have this loop inside this function. However, when PlayerSkippedWave.Value = 1 the loop does not end for some reason. PlayerSkippedWave is a NumberValue. Anyone have an idea of why it's broken?