So I have a gui, which I increase size in through a script. I use tween to do so. But, the problem is that instead of going up or down, it increases the size both up and down. I want it just to increase the size upwards. How would I do this?
The frame element should have an anchor point that you can set. I am not exactly sure what you requesting but this should do it…
I am requesting that my bar when I change its size goes up instead of both up and down.
Change the Y anchor point to 1 and it should fix your problem.
Nope it didn’t work:
https://gyazo.com/8caf2050b8589334622da318d3debfa6
Are you sure you set the anchor point correctly?
It should look like this, (ignore 0.5, as I use that to center the frame) :
To get a result like this:
https://gyazo.com/34da4126000b66ca54321bf056c20fa0
Do I change the anchor point of the text label or the frame which is holding the text label. Or should I just make my text label into a frame?
Change the anchor point of whatever is being tweened by your script.
Yes, I changed the anchor point of my text label, and it didn’t work.
Do you mind sending me a model of your UI bar so that I can see the way you have it set up?
testfile.rbxm (1.9 KB)
You will have to reposition the bar, but it should be working.
I forgot to mention, but I have a UIListLayout inside the Bars frame.
That could be the cause of your issues, as UIListLayout modifies the position of the UI Object.
What should I do to fix this? 30char
Nevermind, I fixed it. I just had to put the UIListLayout VerticalAlignment to the bottom.