Do you have any ideas on how to make an animation of the button “unfolding” and “collapsing”, similar to the animation of the appearance and disappearance of Windows windows?
That is, to have a small dot in the center - our button. And then it began to increase and turned into a large standard version, while remaining in one place in position.
I have the same thing, but the button starts resizing from the upper-left corner, not from the center. Here is the code where I tried to implement my thing:
You’re not answering the OP’s question at all.
To tween a gui object at a fixed point, you can simply change the AnchorPoint property as the fixed point you desire.
Anchor Point has 0.5 and 0.5 set, and it stands in the center, but anyway, as you can see on the video, the message appears in the corner, but I need to center it.
No, I mean, you have to set the position (not the anchor point) of the gui object to the center before the tween, because anchor point doesn’t take effect until it is moved.
Edit: From your screenshot, apparently there is something not allowing you from modifying the position, potentially something such as UIListLayout?
Edit2: If you have to keep the gui objects under the UIListLayout then, consider setting the position of the parent of these gui objects instead.
Don’t tween an individual property, put it in to the same tween you have created above. You can have the {TextTransparency = 0, Size = UDim2.fromScale(x,y)} as goal instead.
Nothing changes. I changed the code a bit in the hope of a smooth animation, but it didn’t work. And before there was just this option. Could you send me your button and the script in the Rbx file? Maybe the characteristics of our buttons do not match.