Extend scrolling frame on own?

Hey everyone when my Inventory gets full of text buttons it doesn’t get bigger on it’s own in my scrolling frame I have a UIgridLayout in my scrollingframe which is located in another scrollingframe
Hide or Die - Roblox Studio 28.01.2025 21_27_41
this is located in InventoryGui and i watched tutorials but still… didn’t all work cuz of different set up.

1 Like

Ok so what you want do is (this assume the scrolling frame scrolls down and up)

go to the scrolling frame and set its AutomaticCanvasSize Property to Y.
It will now automatically get bigger to fit its children on the Y axis. If it scrolls left and right, instead of setting it to Y, you’d set it to X.

3 Likes

thx for the reply but I tried this like alot but it didn’t work is it because there are two frames in each other like two scrolling frames?
Roblox Studio 29.01.2025 14_43_55

maybe this helps(I got another script)

local InventoryEvent = game.ReplicatedStorage.Remotes.InventoryEvent
local itemFrame = script.Parent:FindFirstChild("ItemsFrame")

InventoryEvent.OnClientEvent:Connect(function(ItemName, Value)
	if Value == true then

		local ItemButton = script.Parent.ItemsFrame.ItemButton:Clone()
		ItemButton.Visible = true
		ItemButton.Name = ItemName
		ItemButton.Text = ItemName
		ItemButton.Parent = itemFrame

		local inventoryGui = script.Parent.Parent
		local equipFrame = inventoryGui:WaitForChild("EquipFrame")
		local equipButton = equipFrame:WaitForChild("EquipButton")

		ItemButton.MouseButton1Click:Connect(function()
			equipFrame.Title.Text = ItemName
			equipFrame.Title.Visible = true
			equipButton.Visible = true
		end)
	end

end)

Hello, I’ve just tried this method myself. I can confirm it does in-fact work!

  1. Basically, click play on your game and open the shop GUI.
  2. Then open up your PlayerGui in the side panel
  3. Set AutomaticCanvasSize to Y
  4. You should see it might look weird…
  5. Edit the sizes of your boxes (If you’ve made a UIGrid, edit the sizes there)
  6. Once it look about perfect for your use, copy the UI in your PlayerGui
  7. Press stop in studio and then paste your ui into where it’s usually stored
  8. Remove all templates

Here is a video on how to do it
DevForum Help Video

before I try it should I use the InventoryFrame or the ItemsFrame cuz I scroll down with?

if the ClassType is a ScrollingFrame then use that frame, you’ll only see the option on the scrolling frame.

If you send over your interface I can have a look for you!

1 Like

Yo I fixed it because of you’re video it was because there were 2 scrolling frames not a frame nd a scrolling frame

1 Like

No problem, great to know I helped you! Need anything else? Mention me in your next topic!