Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

"row1 is not a value member of model"?

Asked by
Avi_i 2
5 years ago
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?

1
line 12 is supposed to be: game.Workspace.DanceFloor[row1[i]].BrickColor = BrickColor.Random() Rare_tendo 3000 — 5y
0
thank you, helped a lot Avi_i 2 — 5y
0
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. gullet 471 — 5y

Answer this question