I want the scrolling frame’s scroll bar to fit with the number of items inside it
When the items inside the frame increases, the Scroll Bar gets longer with the items. I’ve tried to create a system down below, might be calculating it wrong
Any help will be very much appreciated
while wait() do
local items = #sf:GetChildren()
local newYSize = items * .1
sf.CanvasSize = UDim2.new(0, 0, newYSize, 0)
ui.CellSize = UDim2.new(.45, 0, (newYSize * .2), 0)
end