This is my script, and Button activates it. However, I have two other buttons, which are Button2 and Button 3. I would like to know how to have all three buttons be able to activate this script? Thanks!
script.Parent.Button.ClickDetector.MouseClick:connect(function()
if script.Parent.Alternate.CanCollide == false then
script.Parent.Alternate.CanCollide = true
script.Parent.Straight.CanCollide = false
script.Parent.AlternateIndicator.BrickColor = BrickColor.new("Lime green")
script.Parent.StraightIndicator.BrickColor = BrickColor.new("Really red")
else
if script.Parent.Straight.CanCollide == false then
script.Parent.Straight.CanCollide = true
script.Parent.Alternate.CanCollide = false
script.Parent.AlternateIndicator.BrickColor = BrickColor.new("Really red")
script.Parent.StraightIndicator.BrickColor = BrickColor.new("Lime green")
end
end
end)

1 comment
Thanks so much, I have no idea how I didn't come up with this :P