Why does this make my guis shrink?

It’s not a matter of wanting this behaviour, it’s a matter of the users unpredictability. A user can choose to spend an hour hovering and un-hovering over your button(s) (just for laughs). It is the programmers job to ensure that the logic never fails and the behaviour remains the same under all circumstances.

This is exactly why tweens override each other. I do extensive testing with UI to ensure this doesn’t happen, and tweens help.

Show me your code, I will break it if you rely solely on Tweens to govern your logic.

1 Like

The code I use it with is literally just basic tweens in MouseEnter and MouseLeave. I will literally sit for minutes and just hover over it and spam trying to break it, and the only issues present are not issues with Tweens, but with how MouseEnter and MouseLeave work.

1 Like

Um I have no idea . . .
Thank you for telling me

Ok so yes it does scale now. Thank you for the help. But new problem. How do I get it to not start scaling from the corner of the ui?
Cause it like gets bigger from the corner as you can see here

This is because you have anchored your button at 0,0 which is the upper left corner. You would need to anchor your buttons at .5,.5 if you want it to expand from the middle. I’d really suggest you go over some of the UI tutorials it will save you lots of time down the road.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.