Does anyone know how to activate two buttons stacked on top of each other with just one click?
The buttons are directly on top of each other
But one button takes priority and makes it so the other button click isn’t detected.
Is there a way I can have both buttons be detected (besides just making it one button)?
I don’t understand. Why don’t you want to just make it one button?
This should work if it is what you’re needing
script.Parent.b.ZIndex = 1
script.Parent.a.ZIndex = 2
script.Parent.a.MouseButton1Click:Connect(function()
print("Button A Clicked")
script.Parent.a.Visible = false
script.Parent.b.Visible = true
end)
script.Parent.b.MouseButton1Click:Connect(function()
print("Button B Clicked")
script.Parent.b.Visible = false
script.Parent.a.Visible = true
end)
Alternating buttons? I don’t think that’s what they asked for. Even if it is, why??? It’s very inefficient.
no idea, I just did whats possible with that information