Here is my updated script (thanks everyone!):
if game.Workspace.Light1.BrickColor == ("Bright yellow")and game.Workspace.Light2.BrickColor == ("Bright yellow")and game.Workspace.Light3.BrickColor == ("Bright yellow") then game.Workspace.Door1.Position = Vector3.new(-49, 6.99, 8.5) game.Workspace.Door2.Position = Vector3.new(-60, 6.99, 8.5) end
The door's position doesn't change when all three bricks are Bright yellow?
Help?
Thank you
I use to do the same thing. BrickColors are not string values. They are BrickColor values. Therefore, you need to check like this:
if game.Workspace.Light1.BrickColor == BrickColor.new("Bright yellow") then
Also keep in mind, however, that if statements only run once. Unless you have other code surrounding that, it will only check if all three bricks are bright yellow a single time, and will not care if they are all bright yellow later. If statements only run once.