8 LED blinking in sequence NOTWORKING PLEASE HELP!!!!!

so I literally just got this ELEGOO UNO R3 starter kit today and all the projects until this one have been fun, challenging and worked great. but for some reason with the project of getting 8 LED's to blink on and off in sequence I cant get it to work. if I plug and unplug the Ardunio board the lights to come on in a different and predictable pattern every time but I would like it to do it on its own, here is my code thank you for all the help!!

int latchPin=5;
int clockPin=6;
int dataPin=4;
byte leds=0;
void setup ()
{
pinMode(latchPin, OUTPUT);
pinMode(dataPin, OUTPUT);
pinMode(clockPin, OUTPUT);
pinMode(outputEnablePin, OUTPUT);
}
void loop()
{
setBrightness(255);
leds=0;
updateShiftRegister();
delay(500);
for (int i = 0; i < 8; i++)
{
bitSet(leds, i);
updateShiftRegister();
delay(500);
}
}
void updateShiftRegister()
{
digitalWrite(latchPin, LOW);
shiftOut(dataPin, clockPin, LSBFIRST, leds);
digitalWrite(latchPin, HIGH);
}
void setBrightness(byte brightness) // 0 to 255
{
analogWrite(outputEnablePin, 255-brightness);
}

There is something wrong in your code or wiring. With the information provided that is the best I have for assistance. Please read the "how to use the forum" stickies. There you will find how to format and post code and what information you should provide in order to get help. Shouting will not get help any faster.

thanks for the response groundfungus. I must have accidently deleted over half my post, sorry about that. I have since fixed it and would appreciate a more seasoned eye looking at what I got goin on. thanks for all the help!!

int latchPin=5;
int clockPin=6;
int dataPin=4;
byte leds=0;
void setup ()
{
  pinMode(latchPin, OUTPUT);
  pinMode(dataPin, OUTPUT);
  pinMode(clockPin, OUTPUT);
  pinMode(outputEnablePin, OUTPUT);
}
void loop()
{
  setBrightness(255);
  leds=0;
  updateShiftRegister();
  delay(500);
  for (int i = 0; i < 8; i++)
  {
    bitSet(leds, i);
    updateShiftRegister();
    delay(500);
  }
}
void updateShiftRegister()
{
  digitalWrite(latchPin, LOW);
  shiftOut(dataPin, clockPin, LSBFIRST, leds);
  digitalWrite(latchPin, HIGH);
}
void setBrightness(byte brightness) // 0 to 255
{
  analogWrite(outputEnablePin, 255-brightness);
}

Starting two more identical threads is unlikely to increase the quality or quantity of responses.

@cenright41, do not cross-post. Other thread removed.

@cenright41, do not cross-post. Other thread removed.

@cenright41, stop cross-posting. Other thread removed.

if I plug and unplug the Ardunio board the lights to come on in a different and predictable pattern every time but I would like it to do it on its own,

So what's the exact question again??