There are 4 buzzers, and I put both of these scripts in each buzzer and none of them work;
I am also getting no errors in the output.
Script 1:
local button = script.Parent local sound = game.Workspace.AGTDesk.GB.GoldenBuzzer local X1 = game.Workspace.AGTDesk.X1 local X2 = game.Workspace.AGTDesk.X2 local X3 = game.Workspace.AGTDesk.X3 local X4 = game.Workspace.AGTDesk.X4 local color = BrickColor.new("Really red") if X1.BrickColor == color and X2.BrickColor == color and X3.BrickColor == color and X4.BrickColor == color then sound:Play() end
Script 2:
local button = script.Parent local sound = game.Workspace.AGTDesk.GB.GoldenBuzzer local X1 = game.Workspace.AGTDesk.X1 local X2 = game.Workspace.AGTDesk.X2 local X3 = game.Workspace.AGTDesk.X3 local X4 = game.Workspace.AGTDesk.X4 local color = BrickColor.new("Really red") function buttonClick() if X1.BrickColor == "Really Red" and X2.BrickColor == "Really Red" and X3.BrickColor == "Really Red" and X4.BrickColor == "Really Red" then sound:Play() end end button.ClickDetector.MouseClick:Connect(buttonClick())
Try this:
local button = script.Parent local sound = game.Workspace.AGTDesk.GB.GoldenBuzzer local X1 = game.Workspace.AGTDesk.X1 local X2 = game.Workspace.AGTDesk.X2 local X3 = game.Workspace.AGTDesk.X3 local X4 = game.Workspace.AGTDesk.X4 local color = BrickColor.new("Really red") function check() if X1.BrickColor == color and X2.BrickColor == color and X3.BrickColor == color and X4.BrickColor == color then sound:Play() end end while true do check() print("loop") -- not needed, but its to check if the loop is working wait(0.5) end
Hope I got it all correct, best hopes for you!