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())

6 comments
In both scripts: It will only works if all the parts are with the same color (Really Red). In script 2: You should use the if like you made in script 1. If you can explain better what you need, I can make an elaborated answer
I'm making a Got Talent game, and I want a sound to play and a decal to change when all 4 buzzers are active, meaning Color = Really Red. (I will decal changing later)
In Script 1 you will have to use a loop to check if the buttons are in the color
I tried answering it. Hope it worked!
why not putting x1-4 in a table?
"Really Red" is case sensitive put "Really red" instead for starters