Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make Dynamic ScrollFrame?

I'm having trouble figuring out how to achieve this effect, i'm hoping someone could point me in the right direction.

https://gyazo.com/111471b584d82cc384422c22d3c9894d

3 comments

1

There's no scrolling in that gif. What precisely is it that you want to do?

0

Not sure what to call it...when you click on farms it opens sub categories and moves everything below the category you clicked downward.

0

As soon as you show the sub items in the list you can ask for a property called the AbsoluteSize of the frame which holds all the items, you can compare that to the AbsoluteSize of the ScrollingFrame which surrounds it and then calculate the percentage between those 2 for how much to increase/decrease it. After that you can simply put that percentage increase within the height of the ScrollingFram

1 answer

"it opens sub categories and moves everything below the category you clicked downward." My answer is a video https://www.youtube.com/watch?v=V_eqogNIYEg.

Check out roblox wiki article about animating user interface GUI Animations

2 comments

0

First that video is bad since it should be using tweens instead of for loops..second, this does not go into solving my problem. I'm wanting to not have to do all the tweening manually. The script should be finding the correct positions for me.

0

So just make one that will find the correct position probably it's not easy to make one but there are few ways to make it stop on specific category text label

This discussion is preserved as it was. New answers, comments, and votes are closed.