So, I currently have a UI list layout with frames being taken in/out of it constantly. Consider it to something such as a leaderboard type of setup. However, as an example, when the top item is removed all of the other items just move up without any sort of animation, they just appear. I was wondering whether it would be possible to do something such as a tween animation when changing the positions, as I can’t seem to find anything that supports it within the UIListLayout. I’m not requesting code, I’m just wondering whether it would be possible or not.
I actually don’t think it’s possible because UIListLayout overrides the position that you set it to be. I personally find UIListLayout too restricting which is why I try to refrain from using it. You’re better off using maths to auto position because you get more freedom.
I might be wrong about not being able to tween UIListLayout but from my experience I haven’t found it possible.
I did think that, it wasn’t that big of a deal just something I could add quickly. It could get quite complicated also using maths as frames are being removed at different orders, which would make it quite hard to track. I’ll just stick to a UIListLayout for now.
When a player leaves, I would just make it transparent and tween the size of the Gui so that the gui below it moves up, then i would destroy it.
Ive been faced with the same situation as yours and i messed around a bit and found out that size takes space when resizing a frame on top of another one, which concluded me into making an invisible frame when a frame is being removed, make the y size the same as the removed frame, and begin tweening its size to 0, when reached to 0 you can remove the invisible frame and voilla you got yourself a smooth animation!