How to see when a GUI button is selected or not

So im trying to make a morph menu i already have it to where they can select it and such, but how would i see if they selected another button then to unselect the former one? would i have to use a for loop to loop through all the buttons im guessing?

-- This is just an expample of what i would have to do
local Selected
local IsSelected = false

Button.MouseButton1Click:Connect(function()
    Selected = Button
end)

for _,Button in pairs("location here":GetChildren()) do
    if Button == Selected then
        IsSelected = true
        -- Stuff here
    else
        IsSelected = false
    end
end
--- I know looping through it like this wont continuously do anything but its just an example 

Beacuse im trying to tween the buton once a player selects it then untween it when they click another one and continue.
How would i correctly do this?