I’m trying to make a player report type of thing. Basically, it’ll be a horizontal scrolling frame of avatars (of all the players in the server). But, I want it to adjust the scrolling bar’s size according to the amount of players in the server, (as it’ll be refreshing a lot and I don’t want the little avatar squares going vertical)
How can I complete this? I’ve provided an example below.
Hey! Thanks for replying, I’m going to read through what you’ve sent. The intension was not for people to send me exact scripts. I just wanted an idea on how to do so.
I’m a programmer myself haha.
I’ve already completed the actual cloning of frames to get all players in a server. I was just wondering on how I should approach enlarging the scrolling frame as the amount of players gets bigger.
You can utilize a UIGridLayout and adjust the CanvasSize property of the ScrollingFrame to match the amount of cells inside.
The following post provides an explanation of this along with code that can detect whenever a GuiObject inside of the ScrollingFrame is added/removed to accommodate for the amount of items contained within it. The main change that would need to be made from the code provided there is the axis that will be adjusted.