GUI Buttons with UILayout hover script

How can I script a hover and clicked animation button with UIGridLayout or UIListLayout? As you may know that UIGridLayout and UIListLayout locks the size or scale.

You can do this using UIScale in your button UI element, by changing the Scale property you can achieve that result.

You can use TweenService to make the transition more smooth.

Oh right UIScale, I forgot about that element. I’ll try and do this, thank you.

put needed content inside a frame that’s listed, so you can position descendants of listed frame whatever way you want

image
Like this right and I add a localscript inside the “Left” Frame and script it with the UIScale properties?

Nvm, I’m still very confused, I don’t know how I should do this. I want it like if I hover my mouse to one button, that one button should scale bigger and the rest of the button will be smaller. This should apply to any of that “the rest” of the button

Did UIScale not help you achieve what you want? I do this myself in my games and it works perfectly.

I get it now, thanks for the help. I didn’t expect I needed to use another element.

1 Like