Help with ROBLOX library application: CreateScrollingFrame()?
I just need some help with creating a very basic scrolling frame using the CreateScrollingFrame() API from ROBLOX's GUI library. Yes, I'm choosing this method oppose to inserting a ScrollingFrame object. I find that it works faster, doesn't glitch, and overall looks more genuine. I can't find anything on the wiki that explains it decently, and I've had trouble figuring it out on my own.
So without making this a long complicated question, this is all I've tried so far:
1 | local scroll_frame, scroll_up, scroll_down, scroll_func = rbxgui.CreateScrollingFrame() |
3 | scroll_frame.Size = UDim 2. new( 1 , 0 , 1 , 0 ) |
4 | scroll_down.Position = UDim 2. new( 1 ,- 17 , 1 ,- 17 ) |
5 | scroll_up.Position = UDim 2. new( 1 ,- 17 , 0 , 0 ) |
7 | scroll_up.Parent = scroll_frame |
8 | scroll_down.Parent = scroll_frame |
9 | scroll_frame.Parent = chat_messages |
My actual problem is i can't figure out how to get the scrolling to work. If anybody knows how to use this, or has any source i could study, i would very much appreciate that. Thank you.