I want to make button, when clicked on it that button is always white, while others change back to blue.Its like a menu when u click one button it gets highlighted while others stay same color?
Heres the scritp:
CATEGORY_BUTTONS_LIST={KNIFE_BUTTON,POWERUP_BUTTON}
for _,button in pairs(CATEGORY_BUTTONS_LIST) do
button.MouseButton1Down:connect(function()
button.BorderColor3=Color3.new(277,277,277)
--if button is selected its color changes to white,else it stays blue or changes back to blue
button.BorderColor3=Color3.new(3, 169, 244)
end)
end
Thanks :) |