Is there a way to make a single function for this:
local var = 0
button1.MouseButton1Down:Connect(function() var = 1 end)
button2.MouseButton1Down:Connect(function() var = 2 end)
button2.MouseButton1Down:Connect(function() var = 3 end)
So when any one of these buttons are clicked, var becomes equal to the number of the button.
local var = 0
button1/button2/button3.MouseButton1Down:Connect(function() var = x end)
(sry can't figure out how to format properly
