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

Help with while loop?

Asked by 8 years ago
while wait() do
    print(flag.BrickColor)
    if flag.BrickColor == BrickColor.new("Really blue") then
        print("1")
        valuesfolder.Flag3.Value = BrickColor.new("Really blue")
    end 
end

It prints "Really blue" over and over in the output, but it doesn't print "1"? What is the problem? Their is no error in the output either, and this is the full script.

0
This can't be the whole code. You haven't defined "flag" and it prints? RepeatLua 90 — 8y
0
Oh, well flag is just script.Parent, and it prints on line 2, it's like 3 where it's stopping. Basically what line 3 is saying "Really blue" == "Really blue" but for some reason it doesnt work NinjoOnline 1146 — 8y

Answer this question