Buttons with Multiple functions

Hello,
i really tried to Solve this on my Own but i reached my limit of Knowledge and neither Searching here or Googleing Helped.

The ISSUE:

I want to Create a Board for some Students in Stage Management (Theater) to train a bit on Virtual Theater Replicas I made.

LEFT and RIGHT do the Exact same.

When you Press one button in ROW 1 on the LEFT PANEL it has to Blink Red on BOTH.

The RIGHT PANEL presses that SAME Button and it turns RED PERMANENT on Both.

Now the LEFT PANEL can press again and turn the same button OFF Completeley.

and then it can repeat.

I have a Counting Loop i tried and it does indeed Blink on Both and after the countin it turns off.
I just dont know how to add the loop break and the Multiple Click option with different functions.

I tried Multiple ClickDetectors in one Button but that does not work

I have this loop count

local LeftLX = game.Workspace.StageManagerBoard.LXred
local RightLX = game.Workspace.BoothBoard.LXred

local Flash = script.Parent.Flash




script.Parent.Flash.MouseClick:Connect(function()
	for count = 1, 100 do
		LeftLX.BrickColor = BrickColor.new("Really red")
		RightLX.BrickColor = BrickColor.new("Really red")
		wait(1)
		LeftLX.BrickColor = BrickColor.new("Smoky grey")
		RightLX.BrickColor = BrickColor.new("Smoky grey")
		wait(0.5)
	end
	LeftLX.BrickColor = BrickColor.new("Ghost grey")
	RightLX.BrickColor = BrickColor.new("Ghost grey")
	print("END")
end)

Its very Complicated Question but a push in the right direction on how to use Multiple CLickDetectors or a Break in a Loop would help a lot.

Thanks,
Ben

Board.rbxl (36.2 KB)

Here is the Game in case it needs more Context. The Blinking works already

I don’t really understand what you’re trying to do, but you can connect more than one function to the same event if that helps:

local function Something() print("something") end
local function SomethingElse() print("something else") end

srcipt.Parent.Flash.MouseClick:Connect(Something)
srcipt.Parent.Flash.MouseClick:Connect(SomethingElse)
1 Like