local row1 = {"square1","square2","square3","square4","square5","square6","square7","square8","square9","square10"}
local row2 = {"square11","square12","square13","square14","square15","square16","square17","square18","square19","square20"}
local row3 = {"square21","square22","square23","square24","square25","square26","square27","square28","square29","square30"}
local Start = true
while Start do
if row1 then
for i = 1,#row1 do
start = false
wait(.05)
game.Workspace.DanceFloor.row1[i].BrickColor = BrickColor.Random()
end
end
wait(3)
Start = true
end
Trying to make a lil cool floor animation but I guess i'm doing something wrong, so does anyone know what i'm doing wrong here?

3 comments
line 12 is supposed to be: game.Workspace.DanceFloor[row1[i]].BrickColor = BrickColor.Random()
thank you, helped a lot
Also just noting that the changin of the start variable has no impact here since it's always true before being evaluated again, it is also capitalized differently and will be treated as 2 different variables.