I want to make a door that will only open after you clicked two buttons but I can't seem to make it work.
Here is the script:
--Button1 Script with click detector
function onClicked(Button1)
script.Parent.BrickColor = BrickColor.new("Bright green")
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
--Button2 Script with click detector
function onClicked(Button2)
script.Parent.BrickColor = BrickColor.new("Bright green")
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
--Exit Script
local button1 = game.Workspace.Button1
local button2 = game.Workspace.Button2
if button1 and button2 == BrickColor("Bright green") then
function sign(Exit)
script.Parent.BrickColor = BrickColor.new("Bright green")
end
end
I don't know how to do this... I can get the Button1 and Button2 working but not the Exit sign.
P.S. I'm only a newbie in scripting.

1 comment
Thank you! I'm going to test these ASAP... can't right now because I'm really busy. Thanks again!