That’s actually the effect I’m trying to achieve-sorry for being unclear. I am actually trying to have it cut off when it moves to sort of revealing it rather than doing something like tweeting transparency. My issue is, that it moves when I adjust the top layer which is what cuts if off, I need it to remain in place.
No, it’s that, as shown in the video, the elements move when the base frame size is changed. I need to make them not move to achieve the desired effect. I also have not done any tweening yet as stated in the post.
as of myknowledge
the children UI will always move relative to the parent, meaning changing the base frame size will move the elements.
“I need to make them not move to achieve the desired effect.”
assuming them is elements and by assuming desired effect is when the elements get cut off by the base frame when moved
tweening the base frame will move the elements, and u dont want the elements to not move, what?
Yes, I’m trying to figure out a way to make them not move when the top layer is moved or in some other manner. I was just using the setup that is commonly used for things such as health bars, only with the layer being transparent rather than a solid. But I wasn’t for sure what exactly to use to do this so I made my post here.
I experimented with the values a lot.
I got a result like this:
for i = 0, -1, -0.01 do
script.Parent.Position = UDim2.new(0, 0, i, 0) -- the frame children moving up for the cut effect.
script.Parent.Parent.Position = UDim2.new(0, 0, 0.326, 0)+UDim2.new(0, 0, math.abs(i), 0) --[[ moving down everything so the children stay in one place.
the 0.326 number is the Y position of the frame (that contains everything else, or in my example - a white half-transparent frame).