I want to move a gui, but I don’t want it to move the children it has. Is there any way to do this?
Only way to do that is have a script
more the children instances while the parent instance is moved.
But why would you need to do this, it seems too complicated.
I don’t understand what you mean. Can you make an example?
And I need it because I made a script inside a frame which has multiple buttons that have movement animations, and the script controls the animations
When animating the parent instance, animate the children instances, but what I’m wondering is, why would you want this, there are workarounds, but they depend on the situation.
No, I don’t want the children to move. I only want the parent to move, while the children stay in one place.
Yes, but the children position is relative
to the parent element, if you move the parent element but you want to conserve the children elements’ absolute position
, then you have to animate both, so that the parent element can move, and the child element’s animation/position change can counter act the parent change.
But again, why do you need this, there are workarounds.
I have a frame that has buttons inside of it.
I have ONE script that is in charge of animating the buttons.
When one button is pressed, it makes another frame inside of them visible.
But the thing is, when the script animates the button, it also animates the frame inside button. I don’t want the frame inside the button to animate.
You should make the frame inside the button a sibling of the button, and if needed, put the button and now its new sibling frame in their own frame, this is because the frame can block the button, and also, the point of a frame (and other UI elements) is to keep it’s contents inside itself, trying to avoid this makes this unnecessarily complicated.
However, if you must do this, then find the offset position of the frame from the button (subtract their absolute value values) then set the frame position (or animate it) to the new button position minus the old button position then add the offset. (if you need help with this I can try)