Invalid argument #2 to 'random' (interval is empty) line 186

image

Line 186 has the issue

Hmm, What is TempColorTable? Mind you letting us know what it looks like and what’s inside of it? I also think that the table.clear() function on the line 200 is affecting it.

image

I don’t think you need to create a new variable for the PuzzleColors table. Maybe you could try removing the TempColorTable variable and replace it with PuzzleColors?

Ok, so I am making a color pattern puzzle that the player must stand on the right color in the right order in order to succeed and I dont want more 1 of the same color